mirror of
https://github.com/open-goal/jak-project
synced 2026-09-05 02:55:51 -04:00
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:
+2
-2
@@ -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\")"}) {
|
||||
|
||||
Reference in New Issue
Block a user