diff --git a/scripts/test/arithmetic.toy b/test/scripts/arithmetic.toy similarity index 100% rename from scripts/test/arithmetic.toy rename to test/scripts/arithmetic.toy diff --git a/scripts/test/call-from-host.toy b/test/scripts/call-from-host.toy similarity index 100% rename from scripts/test/call-from-host.toy rename to test/scripts/call-from-host.toy diff --git a/scripts/test/casting.toy b/test/scripts/casting.toy similarity index 100% rename from scripts/test/casting.toy rename to test/scripts/casting.toy diff --git a/scripts/test/coercions.toy b/test/scripts/coercions.toy similarity index 100% rename from scripts/test/coercions.toy rename to test/scripts/coercions.toy diff --git a/scripts/test/comparisons.toy b/test/scripts/comparisons.toy similarity index 100% rename from scripts/test/comparisons.toy rename to test/scripts/comparisons.toy diff --git a/scripts/test/dot-and-matrix.toy b/test/scripts/dot-and-matrix.toy similarity index 100% rename from scripts/test/dot-and-matrix.toy rename to test/scripts/dot-and-matrix.toy diff --git a/scripts/test/dot-assignments-bugfix.toy b/test/scripts/dot-assignments-bugfix.toy similarity index 100% rename from scripts/test/dot-assignments-bugfix.toy rename to test/scripts/dot-assignments-bugfix.toy diff --git a/scripts/test/dot-chaining.toy b/test/scripts/dot-chaining.toy similarity index 100% rename from scripts/test/dot-chaining.toy rename to test/scripts/dot-chaining.toy diff --git a/scripts/test/dottify-bugfix.toy b/test/scripts/dottify-bugfix.toy similarity index 100% rename from scripts/test/dottify-bugfix.toy rename to test/scripts/dottify-bugfix.toy diff --git a/scripts/test/functions.toy b/test/scripts/functions.toy similarity index 100% rename from scripts/test/functions.toy rename to test/scripts/functions.toy diff --git a/scripts/test/imports-and-exports.toy b/test/scripts/imports-and-exports.toy similarity index 100% rename from scripts/test/imports-and-exports.toy rename to test/scripts/imports-and-exports.toy diff --git a/scripts/test/index-arrays.toy b/test/scripts/index-arrays.toy similarity index 100% rename from scripts/test/index-arrays.toy rename to test/scripts/index-arrays.toy diff --git a/scripts/test/index-dictionaries.toy b/test/scripts/index-dictionaries.toy similarity index 100% rename from scripts/test/index-dictionaries.toy rename to test/scripts/index-dictionaries.toy diff --git a/scripts/test/index-strings.toy b/test/scripts/index-strings.toy similarity index 100% rename from scripts/test/index-strings.toy rename to test/scripts/index-strings.toy diff --git a/scripts/test/jumps-in-functions.toy b/test/scripts/jumps-in-functions.toy similarity index 100% rename from scripts/test/jumps-in-functions.toy rename to test/scripts/jumps-in-functions.toy diff --git a/scripts/test/jumps.toy b/test/scripts/jumps.toy similarity index 100% rename from scripts/test/jumps.toy rename to test/scripts/jumps.toy diff --git a/scripts/test/lib/interactions.toy b/test/scripts/lib/interactions.toy similarity index 100% rename from scripts/test/lib/interactions.toy rename to test/scripts/lib/interactions.toy diff --git a/scripts/test/lib/standard.toy b/test/scripts/lib/standard.toy similarity index 100% rename from scripts/test/lib/standard.toy rename to test/scripts/lib/standard.toy diff --git a/scripts/test/lib/timer.toy b/test/scripts/lib/timer.toy similarity index 100% rename from scripts/test/lib/timer.toy rename to test/scripts/lib/timer.toy diff --git a/scripts/test/logicals.toy b/test/scripts/logicals.toy similarity index 100% rename from scripts/test/logicals.toy rename to test/scripts/logicals.toy diff --git a/scripts/test/long-array.toy b/test/scripts/long-array.toy similarity index 100% rename from scripts/test/long-array.toy rename to test/scripts/long-array.toy diff --git a/scripts/test/long-dictionary.toy b/test/scripts/long-dictionary.toy similarity index 100% rename from scripts/test/long-dictionary.toy rename to test/scripts/long-dictionary.toy diff --git a/scripts/test/long-literals.toy b/test/scripts/long-literals.toy similarity index 100% rename from scripts/test/long-literals.toy rename to test/scripts/long-literals.toy diff --git a/scripts/test/native-functions.toy b/test/scripts/native-functions.toy similarity index 100% rename from scripts/test/native-functions.toy rename to test/scripts/native-functions.toy diff --git a/scripts/test/opaque-data-type.toy b/test/scripts/opaque-data-type.toy similarity index 100% rename from scripts/test/opaque-data-type.toy rename to test/scripts/opaque-data-type.toy diff --git a/scripts/test/panic-within-functions.toy b/test/scripts/panic-within-functions.toy similarity index 100% rename from scripts/test/panic-within-functions.toy rename to test/scripts/panic-within-functions.toy diff --git a/scripts/test/sample_code.toy b/test/scripts/sample_code.toy similarity index 100% rename from scripts/test/sample_code.toy rename to test/scripts/sample_code.toy diff --git a/scripts/test/separate-exports.toy b/test/scripts/separate-exports.toy similarity index 100% rename from scripts/test/separate-exports.toy rename to test/scripts/separate-exports.toy diff --git a/scripts/test/separate-imports.toy b/test/scripts/separate-imports.toy similarity index 100% rename from scripts/test/separate-imports.toy rename to test/scripts/separate-imports.toy diff --git a/scripts/test/types.toy b/test/scripts/types.toy similarity index 100% rename from scripts/test/types.toy rename to test/scripts/types.toy diff --git a/test/test_call_from_host.c b/test/test_call_from_host.c index da4fe19..16c48fe 100644 --- a/test/test_call_from_host.c +++ b/test/test_call_from_host.c @@ -97,7 +97,7 @@ void error(char* msg) { int main() { { size_t size = 0; - char* source = readFile("../scripts//test/call-from-host.toy", &size); + char* source = readFile("scripts/call-from-host.toy", &size); unsigned char* tb = compileString(source, &size); free((void*)source); diff --git a/test/test_compiler.c b/test/test_compiler.c index 92c17c4..a6945f0 100644 --- a/test/test_compiler.c +++ b/test/test_compiler.c @@ -84,7 +84,7 @@ int main() { { //source size_t sourceLength = 0; - char* source = readFile("../scripts/test/sample_code.toy", &sourceLength); + char* source = readFile("scripts/sample_code.toy", &sourceLength); //test basic compilation & collation Lexer lexer; diff --git a/test/test_interpreter.c b/test/test_interpreter.c index e482599..3df0664 100644 --- a/test/test_interpreter.c +++ b/test/test_interpreter.c @@ -175,7 +175,7 @@ int main() { } { - //run each file in ../scripts/test/ + //run each file in tests/scripts/ char* filenames[] = { "arithmetic.toy", "casting.toy", @@ -206,7 +206,7 @@ int main() { printf("Running %s\n", filenames[i]); char buffer[128]; - snprintf(buffer, 128, "../scripts/test/%s", filenames[i]); + snprintf(buffer, 128, "scripts/%s", filenames[i]); runSourceFile(buffer); } @@ -216,8 +216,8 @@ int main() { //read source size_t dummy; size_t exportSize, importSize; - char* exportSource = readFile("../scripts/test/separate-exports.toy", &dummy); - char* importSource = readFile("../scripts/test/separate-imports.toy", &dummy); + char* exportSource = readFile("scripts/separate-exports.toy", &dummy); + char* importSource = readFile("scripts/separate-imports.toy", &dummy); //compile unsigned char* exportBinary = compileString(exportSource, &exportSize); diff --git a/test/test_libraries.c b/test/test_libraries.c index 19183b1..15b92d5 100644 --- a/test/test_libraries.c +++ b/test/test_libraries.c @@ -128,7 +128,7 @@ typedef struct Payload { int main() { { - //run each file in ../scripts/test/ + //run each file in test/scripts Payload payloads[] = { {"interactions.toy", "standard", hookStandard}, //interactions needs standard {"standard.toy", "standard", hookStandard}, @@ -140,7 +140,7 @@ int main() { printf("Running %s\n", payloads[i].fname); char fname[128]; - snprintf(fname, 128, "../scripts/test/lib/%s", payloads[i].fname); + snprintf(fname, 128, "scripts/lib/%s", payloads[i].fname); //compile the source size_t size = 0; diff --git a/test/test_opaque_data_type.c b/test/test_opaque_data_type.c index b5a31e6..85143f7 100644 --- a/test/test_opaque_data_type.c +++ b/test/test_opaque_data_type.c @@ -138,7 +138,7 @@ static int consume(Interpreter* interpreter, LiteralArray* arguments) { int main() { { size_t size = 0; - char* source = readFile("../scripts/test/opaque-data-type.toy", &size); + char* source = readFile("scripts/opaque-data-type.toy", &size); unsigned char* tb = compileString(source, &size); free((void*)source); diff --git a/test/test_parser.c b/test/test_parser.c index 5a7922c..24175e7 100644 --- a/test/test_parser.c +++ b/test/test_parser.c @@ -90,7 +90,7 @@ int main() { { //get the source file size_t size = 0; - char* source = readFile("../scripts/test/sample_code.toy", &size); + char* source = readFile("scripts/sample_code.toy", &size); //test parsing a chunk of junk (valgrind will find leaks) Lexer lexer;