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