Skip to content

Commit b57b8ef

Browse files
committed
Register get_n_chars and incomplete_utf8 tests
Add test functions to tests/scryer/src_tests.rs to enable running the get_n_chars/4 and incomplete UTF-8 handling tests via cargo test. Tests: - get_n_chars: 18 tests covering timeout, nonblock, and variable N - incomplete_utf8: 8 tests covering all predicates with partial UTF-8 Both test suites pass successfully.
1 parent ce0c1e6 commit b57b8ef

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/scryer/src_tests.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,17 @@ fn clpz_load() {
7676
fn iso_conformity_tests() {
7777
load_module_test("tests-pl/iso-conformity-tests.pl", "All tests passed");
7878
}
79+
80+
#[serial]
81+
#[test]
82+
#[cfg_attr(miri, ignore = "it takes too long to run")]
83+
fn get_n_chars() {
84+
load_module_test("src/tests/get_n_chars.pl", "");
85+
}
86+
87+
#[serial]
88+
#[test]
89+
#[cfg_attr(miri, ignore = "it takes too long to run")]
90+
fn incomplete_utf8() {
91+
load_module_test("src/tests/incomplete_utf8.pl", "");
92+
}

0 commit comments

Comments
 (0)