1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

deno_test.cc actually calls into deno now.

This commit is contained in:
Ryan Dahl 2018-06-10 14:28:40 +02:00
parent c0401a4096
commit 44e419065a

View file

@ -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) {