From 44e419065a6f44eded3402434d9f180ac46e6988 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 10 Jun 2018 14:28:40 +0200 Subject: [PATCH] deno_test.cc actually calls into deno now. --- deno2/deno_test.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deno2/deno_test.cc b/deno2/deno_test.cc index 4d3d20d949..0b570a4b52 100644 --- a/deno2/deno_test.cc +++ b/deno2/deno_test.cc @@ -4,9 +4,11 @@ #include "include/deno.h" -TEST(SnapshotTest, InitializesCorrectly) { - EXPECT_TRUE(true); - // TODO(ry) add actual tests +TEST(DenoTest, InitializesCorrectly) { + deno_init(); + Deno* d = deno_new(NULL, NULL); + int r = deno_load(d, "a.js", "1 + 2"); + EXPECT_EQ(r, 0); } int main(int argc, char** argv) {