MCPcopy Create free account
hub / github.com/daisy/MathCAT / test_is_not_simple

Function test_is_not_simple

src/xpath_functions.rs:1261–1269  ·  view source on GitHub ↗
(message: &'static str, mathml_str: &'static str)

Source from the content-addressed store, hash-verified

1259 }
1260
1261 fn test_is_not_simple(message: &'static str, mathml_str: &'static str) {
1262 // this forces initialization
1263 crate::speech::SPEECH_RULES.with(|_| true);
1264 let package = parser::parse(mathml_str)
1265 .expect("failed to parse XML");
1266 let mathml = get_element(&package);
1267 trim_element(&mathml);
1268 assert!(!IsNode::is_simple(mathml), "{}", message);
1269 }
1270 #[test]
1271 fn is_simple() {
1272 test_is_simple("single variable", "<mi>x</mi>");

Callers 1

is_not_simpleFunction · 0.85

Calls 2

get_elementFunction · 0.85
trim_elementFunction · 0.85

Tested by

no test coverage detected