Process Text Files in Decompiler (#122)

* begin support for v2

* export game text

* generate text files

* working text load

* fix windows

* add test and clean up game tests a bit

* load the right file

* add separate program to launch the data compiler

* add offline test script
This commit is contained in:
water111
2020-11-19 21:22:16 -05:00
committed by GitHub
parent ae053870c3
commit 953c1512db
48 changed files with 1794 additions and 200 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ TEST(GoosBuiltins, Read) {
TEST(GoosBuiltins, ReadFile) {
Interpreter i;
// check that we can read a file.
EXPECT_EQ(e(i, "(read-file \"test/test_reader_file0.gc\")"), "(top-level (1 2 3 4))");
EXPECT_EQ(e(i, "(read-file \"test/test_data/test_reader_file0.gc\")"), "(top-level (1 2 3 4))");
i.disable_printfs();
for (auto x : {"(read-file 1)", "(read-file)", "(read-file \"goal/test/not_a_real_file.gc\")"}) {
@@ -59,7 +59,7 @@ TEST(GoosBuiltins, ReadFile) {
TEST(GoosBuiltins, LoadFile) {
Interpreter i;
// check that we can read and execute a file.
e(i, "(load-file \"test/test_goos_file0.gs\")");
e(i, "(load-file \"test/test_data/test_goos_file0.gs\")");
EXPECT_EQ(e(i, "x"), "23");
i.disable_printfs();
for (auto x : {"(load-file 1)", "(load-file)", "(load-file \"goal/test/not_a_real_file.gc\")"}) {