Skip to content

Commit

Permalink
deno_test.cc actually calls into deno now.
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jun 10, 2018
1 parent c0401a4 commit 44e4190
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions deno2/deno_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 44e4190

Please sign in to comment.