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

Function is_not_simple

src/xpath_functions.rs:1292–1304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1290
1291 #[test]
1292 fn is_not_simple() {
1293 test_is_not_simple("multi-char variable", "<mi>rise</mi>");
1294 test_is_not_simple("large ordinal fraction", "<mfrac><mn>30</mn><mn>4</mn></mfrac>");
1295 test_is_not_simple("fraction with var in numerator", "<mfrac><mi>x</mi><mn>4</mn></mfrac>");
1296 test_is_not_simple("square root", "<msqrt><mi>x</mi></msqrt>");
1297 test_is_not_simple("subscript", "<msub><mi>x</mi><mn>4</mn></msub>");
1298 test_is_not_simple("-x y z",
1299 "<mrow><mrow><mo>-</mo><mi>x</mi></mrow>
1300 <mo>&#x2062;</mo><mi>y</mi><mo>&#x2062;</mo><mi>z</mi></mrow>");
1301 test_is_not_simple("C(-2,1,4)", // github.com/NSoiffer/MathCAT/issues/199
1302 "<mrow><mi>C</mi><mrow><mo>(</mo><mo>−</mo><mn>2</mn><mo>,</mo><mn>1</mn><mo>,</mo><mn>4</mn><mo>)</mo></mrow></mrow>");
1303
1304 }
1305
1306 #[test]
1307 fn at_left_edge() {

Callers

nothing calls this directly

Calls 1

test_is_not_simpleFunction · 0.85

Tested by

no test coverage detected