mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
deno_test.cc actually calls into deno now.
This commit is contained in:
parent
c0401a4096
commit
44e419065a
1 changed files with 5 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue