From 8de4808b747f3884c03b98961fac206d45d54d14 Mon Sep 17 00:00:00 2001 From: Erik Svedang Date: Sat, 28 Nov 2020 13:11:43 +0100 Subject: [PATCH] chore: Move test-for-errors to test directory --- .gitignore | 2 ++ scripts/run_carp_tests.sh | 2 +- .../test-for-errors/char_at_index.carp.output.expected | 0 .../test-for-errors/duplicate_binding.carp.output.expected | 0 .../lambda_capturing_ref_that_dies.carp.output.expected | 0 .../test-for-errors/no_forms_in_match.carp.output.expected | 0 .../test-for-errors/no_matching_instance.carp.output.expected | 0 .../test-for-errors/private-bindings.carp.output.expected | 0 .../test-for-errors/return_ref_in_do.carp.output.expected | 0 .../test-for-errors/return_ref_in_let.carp.output.expected | 0 .../return_ref_to_array_literal.carp.output.expected | 0 .../return_ref_to_function_result.carp.output.expected | 0 .../test-for-errors/trick_resolution.carp.output.expected | 0 .../test-for-errors/type_mismatch.carp.output.expected | 0 .../uneven_nr_of_forms_in_match.carp.output.expected | 0 .../test-for-errors/use_ref_after_free.carp.output.expected | 0 .../test-for-errors/use_ref_arg_after_free.carp.output.expected | 0 .../use_ref_via_nth_after_free.carp.output.expected | 0 .../test-for-errors/wrong-phantom.carp.output.expected | 0 .../test-for-errors/wrong_sig_for_def.carp.output.expected | 0 .../test-for-errors/wrong_sig_for_defn.carp.output.expected | 0 {test-for-errors => test/test-for-errors}/char_at_index.carp | 0 .../test-for-errors}/duplicate_binding.carp | 0 .../test-for-errors}/lambda_capturing_ref_that_dies.carp | 0 .../test-for-errors}/no_forms_in_match.carp | 0 .../test-for-errors}/no_matching_instance.carp | 0 {test-for-errors => test/test-for-errors}/private-bindings.carp | 0 {test-for-errors => test/test-for-errors}/return_ref_in_do.carp | 0 .../test-for-errors}/return_ref_in_let.carp | 0 .../test-for-errors}/return_ref_to_array_literal.carp | 0 .../test-for-errors}/return_ref_to_function_result.carp | 0 {test-for-errors => test/test-for-errors}/trick_resolution.carp | 0 {test-for-errors => test/test-for-errors}/type_mismatch.carp | 0 .../test-for-errors}/uneven_nr_of_forms_in_match.carp | 0 .../test-for-errors}/use_ref_after_free.carp | 0 .../test-for-errors}/use_ref_arg_after_free.carp | 0 .../test-for-errors}/use_ref_via_nth_after_free.carp | 0 {test-for-errors => test/test-for-errors}/wrong-phantom.carp | 0 .../test-for-errors}/wrong_sig_for_def.carp | 0 .../test-for-errors}/wrong_sig_for_defn.carp | 0 40 files changed, 3 insertions(+), 1 deletion(-) rename test/output/{ => test}/test-for-errors/char_at_index.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/duplicate_binding.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/lambda_capturing_ref_that_dies.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/no_forms_in_match.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/no_matching_instance.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/private-bindings.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/return_ref_in_do.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/return_ref_in_let.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/return_ref_to_array_literal.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/return_ref_to_function_result.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/trick_resolution.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/type_mismatch.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/uneven_nr_of_forms_in_match.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/use_ref_after_free.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/use_ref_arg_after_free.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/use_ref_via_nth_after_free.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/wrong-phantom.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/wrong_sig_for_def.carp.output.expected (100%) rename test/output/{ => test}/test-for-errors/wrong_sig_for_defn.carp.output.expected (100%) rename {test-for-errors => test/test-for-errors}/char_at_index.carp (100%) rename {test-for-errors => test/test-for-errors}/duplicate_binding.carp (100%) rename {test-for-errors => test/test-for-errors}/lambda_capturing_ref_that_dies.carp (100%) rename {test-for-errors => test/test-for-errors}/no_forms_in_match.carp (100%) rename {test-for-errors => test/test-for-errors}/no_matching_instance.carp (100%) rename {test-for-errors => test/test-for-errors}/private-bindings.carp (100%) rename {test-for-errors => test/test-for-errors}/return_ref_in_do.carp (100%) rename {test-for-errors => test/test-for-errors}/return_ref_in_let.carp (100%) rename {test-for-errors => test/test-for-errors}/return_ref_to_array_literal.carp (100%) rename {test-for-errors => test/test-for-errors}/return_ref_to_function_result.carp (100%) rename {test-for-errors => test/test-for-errors}/trick_resolution.carp (100%) rename {test-for-errors => test/test-for-errors}/type_mismatch.carp (100%) rename {test-for-errors => test/test-for-errors}/uneven_nr_of_forms_in_match.carp (100%) rename {test-for-errors => test/test-for-errors}/use_ref_after_free.carp (100%) rename {test-for-errors => test/test-for-errors}/use_ref_arg_after_free.carp (100%) rename {test-for-errors => test/test-for-errors}/use_ref_via_nth_after_free.carp (100%) rename {test-for-errors => test/test-for-errors}/wrong-phantom.carp (100%) rename {test-for-errors => test/test-for-errors}/wrong_sig_for_def.carp (100%) rename {test-for-errors => test/test-for-errors}/wrong_sig_for_defn.carp (100%) diff --git a/.gitignore b/.gitignore index 6cf1313a..4895cdc1 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ flamegraph.svg /docs/core/*.html /docs/sdl/*.html /docs/sdl/.DS_Store +*/.DS_Store +.DS_Store diff --git a/scripts/run_carp_tests.sh b/scripts/run_carp_tests.sh index 37c9b6b2..94b41d70 100755 --- a/scripts/run_carp_tests.sh +++ b/scripts/run_carp_tests.sh @@ -34,7 +34,7 @@ for f in ./test/*.carp; do done echo "Test for correct error messages when doing "carp --check" on the source." -for f in ./test-for-errors/*.carp; do +for f in ./test/test-for-errors/*.carp; do echo $f ./test/check.sh $f done diff --git a/test/output/test-for-errors/char_at_index.carp.output.expected b/test/output/test/test-for-errors/char_at_index.carp.output.expected similarity index 100% rename from test/output/test-for-errors/char_at_index.carp.output.expected rename to test/output/test/test-for-errors/char_at_index.carp.output.expected diff --git a/test/output/test-for-errors/duplicate_binding.carp.output.expected b/test/output/test/test-for-errors/duplicate_binding.carp.output.expected similarity index 100% rename from test/output/test-for-errors/duplicate_binding.carp.output.expected rename to test/output/test/test-for-errors/duplicate_binding.carp.output.expected diff --git a/test/output/test-for-errors/lambda_capturing_ref_that_dies.carp.output.expected b/test/output/test/test-for-errors/lambda_capturing_ref_that_dies.carp.output.expected similarity index 100% rename from test/output/test-for-errors/lambda_capturing_ref_that_dies.carp.output.expected rename to test/output/test/test-for-errors/lambda_capturing_ref_that_dies.carp.output.expected diff --git a/test/output/test-for-errors/no_forms_in_match.carp.output.expected b/test/output/test/test-for-errors/no_forms_in_match.carp.output.expected similarity index 100% rename from test/output/test-for-errors/no_forms_in_match.carp.output.expected rename to test/output/test/test-for-errors/no_forms_in_match.carp.output.expected diff --git a/test/output/test-for-errors/no_matching_instance.carp.output.expected b/test/output/test/test-for-errors/no_matching_instance.carp.output.expected similarity index 100% rename from test/output/test-for-errors/no_matching_instance.carp.output.expected rename to test/output/test/test-for-errors/no_matching_instance.carp.output.expected diff --git a/test/output/test-for-errors/private-bindings.carp.output.expected b/test/output/test/test-for-errors/private-bindings.carp.output.expected similarity index 100% rename from test/output/test-for-errors/private-bindings.carp.output.expected rename to test/output/test/test-for-errors/private-bindings.carp.output.expected diff --git a/test/output/test-for-errors/return_ref_in_do.carp.output.expected b/test/output/test/test-for-errors/return_ref_in_do.carp.output.expected similarity index 100% rename from test/output/test-for-errors/return_ref_in_do.carp.output.expected rename to test/output/test/test-for-errors/return_ref_in_do.carp.output.expected diff --git a/test/output/test-for-errors/return_ref_in_let.carp.output.expected b/test/output/test/test-for-errors/return_ref_in_let.carp.output.expected similarity index 100% rename from test/output/test-for-errors/return_ref_in_let.carp.output.expected rename to test/output/test/test-for-errors/return_ref_in_let.carp.output.expected diff --git a/test/output/test-for-errors/return_ref_to_array_literal.carp.output.expected b/test/output/test/test-for-errors/return_ref_to_array_literal.carp.output.expected similarity index 100% rename from test/output/test-for-errors/return_ref_to_array_literal.carp.output.expected rename to test/output/test/test-for-errors/return_ref_to_array_literal.carp.output.expected diff --git a/test/output/test-for-errors/return_ref_to_function_result.carp.output.expected b/test/output/test/test-for-errors/return_ref_to_function_result.carp.output.expected similarity index 100% rename from test/output/test-for-errors/return_ref_to_function_result.carp.output.expected rename to test/output/test/test-for-errors/return_ref_to_function_result.carp.output.expected diff --git a/test/output/test-for-errors/trick_resolution.carp.output.expected b/test/output/test/test-for-errors/trick_resolution.carp.output.expected similarity index 100% rename from test/output/test-for-errors/trick_resolution.carp.output.expected rename to test/output/test/test-for-errors/trick_resolution.carp.output.expected diff --git a/test/output/test-for-errors/type_mismatch.carp.output.expected b/test/output/test/test-for-errors/type_mismatch.carp.output.expected similarity index 100% rename from test/output/test-for-errors/type_mismatch.carp.output.expected rename to test/output/test/test-for-errors/type_mismatch.carp.output.expected diff --git a/test/output/test-for-errors/uneven_nr_of_forms_in_match.carp.output.expected b/test/output/test/test-for-errors/uneven_nr_of_forms_in_match.carp.output.expected similarity index 100% rename from test/output/test-for-errors/uneven_nr_of_forms_in_match.carp.output.expected rename to test/output/test/test-for-errors/uneven_nr_of_forms_in_match.carp.output.expected diff --git a/test/output/test-for-errors/use_ref_after_free.carp.output.expected b/test/output/test/test-for-errors/use_ref_after_free.carp.output.expected similarity index 100% rename from test/output/test-for-errors/use_ref_after_free.carp.output.expected rename to test/output/test/test-for-errors/use_ref_after_free.carp.output.expected diff --git a/test/output/test-for-errors/use_ref_arg_after_free.carp.output.expected b/test/output/test/test-for-errors/use_ref_arg_after_free.carp.output.expected similarity index 100% rename from test/output/test-for-errors/use_ref_arg_after_free.carp.output.expected rename to test/output/test/test-for-errors/use_ref_arg_after_free.carp.output.expected diff --git a/test/output/test-for-errors/use_ref_via_nth_after_free.carp.output.expected b/test/output/test/test-for-errors/use_ref_via_nth_after_free.carp.output.expected similarity index 100% rename from test/output/test-for-errors/use_ref_via_nth_after_free.carp.output.expected rename to test/output/test/test-for-errors/use_ref_via_nth_after_free.carp.output.expected diff --git a/test/output/test-for-errors/wrong-phantom.carp.output.expected b/test/output/test/test-for-errors/wrong-phantom.carp.output.expected similarity index 100% rename from test/output/test-for-errors/wrong-phantom.carp.output.expected rename to test/output/test/test-for-errors/wrong-phantom.carp.output.expected diff --git a/test/output/test-for-errors/wrong_sig_for_def.carp.output.expected b/test/output/test/test-for-errors/wrong_sig_for_def.carp.output.expected similarity index 100% rename from test/output/test-for-errors/wrong_sig_for_def.carp.output.expected rename to test/output/test/test-for-errors/wrong_sig_for_def.carp.output.expected diff --git a/test/output/test-for-errors/wrong_sig_for_defn.carp.output.expected b/test/output/test/test-for-errors/wrong_sig_for_defn.carp.output.expected similarity index 100% rename from test/output/test-for-errors/wrong_sig_for_defn.carp.output.expected rename to test/output/test/test-for-errors/wrong_sig_for_defn.carp.output.expected diff --git a/test-for-errors/char_at_index.carp b/test/test-for-errors/char_at_index.carp similarity index 100% rename from test-for-errors/char_at_index.carp rename to test/test-for-errors/char_at_index.carp diff --git a/test-for-errors/duplicate_binding.carp b/test/test-for-errors/duplicate_binding.carp similarity index 100% rename from test-for-errors/duplicate_binding.carp rename to test/test-for-errors/duplicate_binding.carp diff --git a/test-for-errors/lambda_capturing_ref_that_dies.carp b/test/test-for-errors/lambda_capturing_ref_that_dies.carp similarity index 100% rename from test-for-errors/lambda_capturing_ref_that_dies.carp rename to test/test-for-errors/lambda_capturing_ref_that_dies.carp diff --git a/test-for-errors/no_forms_in_match.carp b/test/test-for-errors/no_forms_in_match.carp similarity index 100% rename from test-for-errors/no_forms_in_match.carp rename to test/test-for-errors/no_forms_in_match.carp diff --git a/test-for-errors/no_matching_instance.carp b/test/test-for-errors/no_matching_instance.carp similarity index 100% rename from test-for-errors/no_matching_instance.carp rename to test/test-for-errors/no_matching_instance.carp diff --git a/test-for-errors/private-bindings.carp b/test/test-for-errors/private-bindings.carp similarity index 100% rename from test-for-errors/private-bindings.carp rename to test/test-for-errors/private-bindings.carp diff --git a/test-for-errors/return_ref_in_do.carp b/test/test-for-errors/return_ref_in_do.carp similarity index 100% rename from test-for-errors/return_ref_in_do.carp rename to test/test-for-errors/return_ref_in_do.carp diff --git a/test-for-errors/return_ref_in_let.carp b/test/test-for-errors/return_ref_in_let.carp similarity index 100% rename from test-for-errors/return_ref_in_let.carp rename to test/test-for-errors/return_ref_in_let.carp diff --git a/test-for-errors/return_ref_to_array_literal.carp b/test/test-for-errors/return_ref_to_array_literal.carp similarity index 100% rename from test-for-errors/return_ref_to_array_literal.carp rename to test/test-for-errors/return_ref_to_array_literal.carp diff --git a/test-for-errors/return_ref_to_function_result.carp b/test/test-for-errors/return_ref_to_function_result.carp similarity index 100% rename from test-for-errors/return_ref_to_function_result.carp rename to test/test-for-errors/return_ref_to_function_result.carp diff --git a/test-for-errors/trick_resolution.carp b/test/test-for-errors/trick_resolution.carp similarity index 100% rename from test-for-errors/trick_resolution.carp rename to test/test-for-errors/trick_resolution.carp diff --git a/test-for-errors/type_mismatch.carp b/test/test-for-errors/type_mismatch.carp similarity index 100% rename from test-for-errors/type_mismatch.carp rename to test/test-for-errors/type_mismatch.carp diff --git a/test-for-errors/uneven_nr_of_forms_in_match.carp b/test/test-for-errors/uneven_nr_of_forms_in_match.carp similarity index 100% rename from test-for-errors/uneven_nr_of_forms_in_match.carp rename to test/test-for-errors/uneven_nr_of_forms_in_match.carp diff --git a/test-for-errors/use_ref_after_free.carp b/test/test-for-errors/use_ref_after_free.carp similarity index 100% rename from test-for-errors/use_ref_after_free.carp rename to test/test-for-errors/use_ref_after_free.carp diff --git a/test-for-errors/use_ref_arg_after_free.carp b/test/test-for-errors/use_ref_arg_after_free.carp similarity index 100% rename from test-for-errors/use_ref_arg_after_free.carp rename to test/test-for-errors/use_ref_arg_after_free.carp diff --git a/test-for-errors/use_ref_via_nth_after_free.carp b/test/test-for-errors/use_ref_via_nth_after_free.carp similarity index 100% rename from test-for-errors/use_ref_via_nth_after_free.carp rename to test/test-for-errors/use_ref_via_nth_after_free.carp diff --git a/test-for-errors/wrong-phantom.carp b/test/test-for-errors/wrong-phantom.carp similarity index 100% rename from test-for-errors/wrong-phantom.carp rename to test/test-for-errors/wrong-phantom.carp diff --git a/test-for-errors/wrong_sig_for_def.carp b/test/test-for-errors/wrong_sig_for_def.carp similarity index 100% rename from test-for-errors/wrong_sig_for_def.carp rename to test/test-for-errors/wrong_sig_for_def.carp diff --git a/test-for-errors/wrong_sig_for_defn.carp b/test/test-for-errors/wrong_sig_for_defn.carp similarity index 100% rename from test-for-errors/wrong_sig_for_defn.carp rename to test/test-for-errors/wrong_sig_for_defn.carp