diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-06-10 14:28:40 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-10 14:28:40 +0200 |
commit | 44e419065a6f44eded3402434d9f180ac46e6988 (patch) | |
tree | c4a888444da912da8caad345b0ecc86da9930364 /deno2/deno_test.cc | |
parent | c0401a4096b55cfacf0aa848df1ba74d48a05e3d (diff) |
deno_test.cc actually calls into deno now.
Diffstat (limited to 'deno2/deno_test.cc')
-rw-r--r-- | deno2/deno_test.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/deno2/deno_test.cc b/deno2/deno_test.cc index 4d3d20d94..0b570a4b5 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) { |