// Other tests for LaTeX generation use crate::common::*; #[test] fn menclose_diagonal_arrows() { let expr = r#" x "#; // arrows aren't part of ASCIIMath test_braille("ASCIIMath-fi", expr, r"x"); } #[test] fn menclose_double_arrows() { // extra spaces are deliberate -- they shouldn't make a difference let expr = r#" x "#; // arrows aren't part of ASCIIMath test_braille("ASCIIMath-fi", expr, r"x"); } #[test] fn menclose_horiz_and_vert_arrows() { let expr = r#" x "#; // arrows aren't part of ASCIIMath test_braille("ASCIIMath-fi", expr, r"x"); } #[test] fn char_test() { let expr = r#" A, A, C, l, P, X, H, z, t, x,h "#; test_braille("ASCIIMath-fi", expr, r"bb A, bbb A, CC, cc l, cc P, tt X, fr H, fr z, sf t, x, h"); } #[test] fn proportional() { let expr = r#" a b "#; test_braille("ASCIIMath-fi", expr, r"a ~ b"); } #[test] fn norm() { let expr = r#" x "#; test_braille("ASCIIMath-fi", expr, r"|vec x|"); } #[test] fn text_and_space() { let expr = r#" a   jotain tekstiƤ   b "#; test_braille("ASCIIMath-fi", expr, r#"a jotain tekstiƤ b"#); } #[test] fn mixed_fraction() { let expr = r#"212"#; test_braille("ASCIIMath-fi", expr, r#"2#1/2"#); } #[test] fn dots_and_bars() { let expr = r#" x^ , x¯ , x+y̲ , x , x. , y.. "#; test_braille("ASCIIMath-fi", expr, r"hat x, bar x, ul(x +y), vec bb x, dot x, ddot y"); } // FI: No specs for this mark up, but would be useful to have in the future. // #[test] // fn above_and_below() { // let expr = r#" // // 1+2 // // // , // // x-y // // // , // // // xy // // , // // // xy // // "#; // test_braille("ASCIIMath-fi", expr, r"ubrace(1+2), obrace(x-y), underset(x->y)(->), overset(x->y)(lArr)"); // } // // FI: No specs for this mark up, but would be useful to have in the future. // #[test] // fn menclose_strikes () { // let expr = r#" // x // "#; // test_braille("ASCIIMath-fi", expr, r"\cancel(x)"); // } // // #[test] // fn menclose_box_and_circle () { // let expr = r#" // x // "#; // // box and circle aren't part of ASCIIMath // test_braille("ASCIIMath-fi", expr, r"|overline(underline(x))|"); // } // // #[test] // fn menclose_sides () { // let expr = r#" // x // x // "#; // test_braille("ASCIIMath-fi", expr, r"|x|overline(underline(x))"); // } // // #[test] // fn menclose_all_sides() { // let expr = r#" // x // "#; // test_braille("ASCIIMath-fi", expr, r"|overline(underline(x))|"); // }