load_xml was returning a single term instead of a list of nodes

This commit is contained in:
no382001
2026-03-03 12:34:31 +01:00
parent 453a88f03e
commit 025da8315b
3 changed files with 20 additions and 1 deletions

View File

@@ -20,6 +20,15 @@ fn issue2588_load_html() {
load_module_test("tests-pl/issue2588.pl", "[element(html,[],[element(head,[],[element(title,[],[[H,e,l,l,o,!]])]),element(body,[],[])])]");
}
#[test]
#[cfg_attr(miri, ignore = "unsupported operation when isolation is enabled")]
fn issue3256_load_xml_returns_list() {
load_module_test(
"tests-pl/issue3256.pl",
"[element(foo,[],[element(bar,[],[[h,e,l,l,o]])])]",
);
}
#[test]
#[cfg_attr(miri, ignore = "unsupported operation when isolation is enabled")]
fn issue2949_load_html() {