Resolve lints and format

This commit is contained in:
infogulch
2023-11-04 02:16:54 -05:00
parent dddffb01a6
commit 9444e62df9
58 changed files with 2521 additions and 2820 deletions

View File

@@ -69,7 +69,7 @@ fn handle_residual_goal() {
#[test]
fn occurs_check_flag() {
run_top_level_test_with_args(
&["tests-pl/issue841-occurs-check.pl"],
["tests-pl/issue841-occurs-check.pl"],
"\
f(X, X).\n\
halt.\n\
@@ -102,14 +102,14 @@ fn occurs_check_flag2() {
// issue #839
#[test]
fn op3() {
run_top_level_test_with_args(&["tests-pl/issue839-op3.pl", "-g", "halt"], "", "")
run_top_level_test_with_args(["tests-pl/issue839-op3.pl", "-g", "halt"], "", "")
}
// issue #820
#[test]
fn multiple_goals() {
run_top_level_test_with_args(
&["-g", "test", "-g", "halt", "tests-pl/issue820-goals.pl"],
["-g", "test", "-g", "halt", "tests-pl/issue820-goals.pl"],
"",
"helloworld\n",
);
@@ -119,7 +119,7 @@ fn multiple_goals() {
#[test]
fn compound_goal() {
run_top_level_test_with_args(
&["-g", "test,halt", "tests-pl/issue820-goals.pl"],
["-g", "test,halt", "tests-pl/issue820-goals.pl"],
"",
"helloworld\n",
)

View File

@@ -58,7 +58,7 @@ fn setup_call_cleanup_load() {
#[test]
fn setup_call_cleanup_process() {
run_top_level_test_with_args(
&["src/tests/setup_call_cleanup.pl", "-f", "-g", "halt"],
["src/tests/setup_call_cleanup.pl", "-f", "-g", "halt"],
"",
"1+21+31+2>A+B1+G1+2>41+2>B1+2>31+2>31+2>4ba",
);
@@ -79,7 +79,7 @@ fn iso_conformity_tests() {
#[test]
fn dif_tests() {
run_top_level_test_with_args(
&["src/tests/dif.pl", "-f", "-g", "main_quiet"],
["src/tests/dif.pl", "-f", "-g", "main_quiet"],
"",
"All tests passed",
);
@@ -88,7 +88,7 @@ fn dif_tests() {
#[test]
fn ground_tests() {
run_top_level_test_with_args(
&["src/tests/ground.pl", "-f", "-g", "main_quiet"],
["src/tests/ground.pl", "-f", "-g", "main_quiet"],
"",
"All tests passed",
);
@@ -97,7 +97,7 @@ fn ground_tests() {
#[test]
fn term_variables_tests() {
run_top_level_test_with_args(
&["src/tests/term_variables.pl", "-f", "-g", "main_quiet"],
["src/tests/term_variables.pl", "-f", "-g", "main_quiet"],
"",
"All tests passed",
);
@@ -106,7 +106,7 @@ fn term_variables_tests() {
#[test]
fn acyclic_term_tests() {
run_top_level_test_with_args(
&["src/tests/acyclic_term.pl", "-f", "-g", "main_quiet"],
["src/tests/acyclic_term.pl", "-f", "-g", "main_quiet"],
"",
"All tests passed",
);