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

Function test_is_simple

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

Source from the content-addressed store, hash-verified

1249
1250
1251 fn test_is_simple(message: &'static str, mathml_str: &'static str) {
1252 // this forces initialization
1253 crate::speech::SPEECH_RULES.with(|_| true);
1254 let package = parser::parse(mathml_str)
1255 .expect("failed to parse XML");
1256 let mathml = get_element(&package);
1257 trim_element(&mathml);
1258 assert!(IsNode::is_simple(mathml), "{}", message);
1259 }
1260
1261 fn test_is_not_simple(message: &'static str, mathml_str: &'static str) {
1262 // this forces initialization

Callers 1

is_simpleFunction · 0.85

Calls 2

get_elementFunction · 0.85
trim_elementFunction · 0.85

Tested by

no test coverage detected