(message: &'static str, mathml_str: &'static str)
| 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>"); |
no test coverage detected