fixed failing test after "cleanup"

This commit is contained in:
Felix Brendel
2019-11-15 01:15:43 +01:00
parent 650eba7f18
commit 2c097fb85a
7 changed files with 1297 additions and 1287 deletions
+4
View File
@@ -0,0 +1,4 @@
(define a 10)
(define (get-a-1)
a)
+8
View File
@@ -0,0 +1,8 @@
(import "tests/import1.slime")
(define (set-a-2 s)
(set! a s))
(define (get-a-2)
a)
+2 -2
View File
@@ -1,10 +1,10 @@
(import "import1.slime")
(import "tests/import1.slime")
(assert (= a 10))
(assert (= (get-a-1) 10))
(import "import2.slime")
(import "tests/import2.slime")
(assert (= a 10))
(assert (= (get-a-1) 10))
+4 -4
View File
@@ -19,12 +19,12 @@ echo "----------------------"
echo ""
# 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 \
-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 ""
pushd ./bin > /dev/null
+1278 -1278
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -4,7 +4,7 @@ int main(int argc, char* argv[]) {
if (argc > 1) {
if (Slime::string_equal(argv[1], "--run-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();
#ifdef _MSC_VER
_CrtDumpMemoryLeaks();
-2
View File
@@ -649,8 +649,6 @@ proc run_all_tests() -> bool {
invoke_test_script("hashmaps");
invoke_test_script("singular_imports");
// // Memory::print_status();
return result;
}