| @@ -0,0 +1,4 @@ | |||||
| (define a 10) | |||||
| (define (get-a-1) | |||||
| a) | |||||
| @@ -0,0 +1,8 @@ | |||||
| (import "tests/import1.slime") | |||||
| (define (set-a-2 s) | |||||
| (set! a s)) | |||||
| (define (get-a-2) | |||||
| a) | |||||
| @@ -1,10 +1,10 @@ | |||||
| (import "import1.slime") | |||||
| (import "tests/import1.slime") | |||||
| (assert (= a 10)) | (assert (= a 10)) | ||||
| (assert (= (get-a-1) 10)) | (assert (= (get-a-1) 10)) | ||||
| (import "import2.slime") | |||||
| (import "tests/import2.slime") | |||||
| (assert (= a 10)) | (assert (= a 10)) | ||||
| (assert (= (get-a-1) 10)) | (assert (= (get-a-1) 10)) | ||||
| @@ -19,12 +19,12 @@ echo "----------------------" | |||||
| echo "" | echo "" | ||||
| # time g++ -fpermissive src/main.cpp -g -o ./bin/slime --std=c++17 || exit 1 | # time g++ -fpermissive src/main.cpp -g -o ./bin/slime --std=c++17 || exit 1 | ||||
| # time clang++ -D_DEBUG -D_DONT_BREAK_ON_ERRORS \ | |||||
| # src/main.cpp -g -o ./bin/slime --std=c++17 \ | |||||
| # -I3rd/ || exit 1 | |||||
| time clang++ -O3 -D_DONT_BREAK_ON_ERRORS \ | |||||
| time clang++ -D_DEBUG -D_DONT_BREAK_ON_ERRORS \ | |||||
| src/main.cpp -g -o ./bin/slime --std=c++17 \ | src/main.cpp -g -o ./bin/slime --std=c++17 \ | ||||
| -I3rd/ || exit 1 | -I3rd/ || exit 1 | ||||
| # time clang++ -O3 -D_DONT_BREAK_ON_ERRORS \ | |||||
| # src/main.cpp -g -o ./bin/slime --std=c++17 \ | |||||
| # -I3rd/ || exit 1 | |||||
| echo "" | echo "" | ||||
| pushd ./bin > /dev/null | pushd ./bin > /dev/null | ||||
| @@ -4,7 +4,7 @@ int main(int argc, char* argv[]) { | |||||
| if (argc > 1) { | if (argc > 1) { | ||||
| if (Slime::string_equal(argv[1], "--run-tests")) { | if (Slime::string_equal(argv[1], "--run-tests")) { | ||||
| int res = Slime::run_all_tests(); | int res = Slime::run_all_tests(); | ||||
| // Slime::built_in_load(Slime::Memory::create_string("generate-docs.slime")); | |||||
| Slime::built_in_load(Slime::Memory::create_string("generate-docs.slime")); | |||||
| Slime::Memory::free_everything(); | Slime::Memory::free_everything(); | ||||
| #ifdef _MSC_VER | #ifdef _MSC_VER | ||||
| _CrtDumpMemoryLeaks(); | _CrtDumpMemoryLeaks(); | ||||
| @@ -649,8 +649,6 @@ proc run_all_tests() -> bool { | |||||
| invoke_test_script("hashmaps"); | invoke_test_script("hashmaps"); | ||||
| invoke_test_script("singular_imports"); | invoke_test_script("singular_imports"); | ||||
| // // Memory::print_status(); | |||||
| return result; | return result; | ||||
| } | } | ||||