From 5f2aa22ecb80c5eabd82951f7dce2d017738fa5c Mon Sep 17 00:00:00 2001 From: NSoiffer Date: Wed, 13 Dec 2023 01:21:41 +0000 Subject: [PATCH] Modified `example_11_5_3` to use output from MathJax. The previous MathML was strange and I couldn't figure out where it came from. Added `overscript_grouping_aph_5_4_8` to test issue #220. --- tests/braille/Nemeth/rules.rs | 1 - tests/braille/UEB/iceb.rs | 19 ++++++++++++++++--- tests/braille/UEB/other.rs | 7 +++++++ 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/tests/braille/Nemeth/rules.rs b/tests/braille/Nemeth/rules.rs index 5929d28f..484c4bd2 100644 --- a/tests/braille/Nemeth/rules.rs +++ b/tests/braille/Nemeth/rules.rs @@ -272,7 +272,6 @@ fn greek_24_b_1() { #[test] fn eli_nemeth_UEB_rule_book_4_11_1() { - init_logger(); let expr = " p  D  diff --git a/tests/braille/UEB/iceb.rs b/tests/braille/UEB/iceb.rs index 302d296d..f9f8f7b5 100644 --- a/tests/braille/UEB/iceb.rs +++ b/tests/braille/UEB/iceb.rs @@ -949,10 +949,23 @@ fn example_11_5_2() { #[test] fn example_11_5_3() { + // from MathJaX + let expr = " + n + Cr + = + + ( + nr + ) + + = + + n! + r!(nr)! + + "; // modified to use "shape" as recommended in a comment on this example - let expr = "Cnr= - (nr)= - n!r!(n-r)!"; test_braille("UEB", expr, "⠰⠰⠰⠔⠝⠠⠉⠢⠗⠀⠐⠶⠀⠐⠣⠝⠰⠻⠗⠐⠜⠀⠐⠶⠀⠷⠝⠖⠨⠌⠗⠖⠐⠣⠝⠐⠤⠗⠐⠜⠖⠾⠰⠄"); } diff --git a/tests/braille/UEB/other.rs b/tests/braille/UEB/other.rs index e0c0e611..d811a840 100644 --- a/tests/braille/UEB/other.rs +++ b/tests/braille/UEB/other.rs @@ -21,6 +21,13 @@ fn blank_aph_7_1_ex5() { test_braille("UEB", expr, "⠼⠉⠒⠼⠁⠑⠀⠒⠒⠀⠼⠋⠚⠒⠨⠤"); } +#[test] +fn overscript_grouping_aph_5_4_8() { + // this test was added because #220 (failed to add grouping around overscript) + let expr = " MN "; + test_braille("UEB", expr, "⠰⠰⠣⠠⠠⠍⠝⠜⠨⠔⠳⠺⠗⠕"); +} + // Extra tests targeted at special cases in MathCAT #[test] fn number_space_before() {