clean up tests/
give helper function a more descriptive name
This commit is contained in:
59
tests/scryer/src_tests.rs
Normal file
59
tests/scryer/src_tests.rs
Normal file
@@ -0,0 +1,59 @@
|
||||
use crate::helper::{load_module_test, run_top_level_test_with_args};
|
||||
|
||||
#[test]
|
||||
fn builtins() {
|
||||
load_module_test("src/tests/builtins.pl", "");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn call_with_inference_limit() {
|
||||
load_module_test("src/tests/call_with_inference_limit.pl", "");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn facts() {
|
||||
load_module_test("src/tests/facts.pl", "");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn hello_world() {
|
||||
load_module_test("src/tests/hello_world.pl", "Hello World!\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn syntax_error() {
|
||||
load_module_test(
|
||||
"tests-pl/syntax_error.pl",
|
||||
"caught: error(syntax_error(incomplete_reduction),read_term/3:5)\n",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn predicates() {
|
||||
load_module_test("src/tests/predicates.pl", "");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rules() {
|
||||
load_module_test("src/tests/rules.pl", "");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn setup_call_cleanup_load() {
|
||||
load_module_test("src/tests/setup_call_cleanup.pl", "caught: unthrown\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn setup_call_cleanup_process() {
|
||||
run_top_level_test_with_args(
|
||||
&["src/tests/setup_call_cleanup.pl"],
|
||||
"",
|
||||
"caught: unthrown\n",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore] // ignored as this does not terminate
|
||||
fn clpz_load() {
|
||||
load_module_test("src/tests/clpz/test_clpz.pl", "");
|
||||
}
|
||||
Reference in New Issue
Block a user