// Other tests for LaTeX generation
use crate::common::*;
#[test]
fn menclose_diagonal_arrows() {
let expr = r#""#;
// 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#""#;
// arrows aren't part of ASCIIMath
test_braille("ASCIIMath-fi", expr, r"x");
}
#[test]
fn menclose_horiz_and_vert_arrows() {
let expr = r#""#;
// arrows aren't part of ASCIIMath
test_braille("ASCIIMath-fi", expr, r"x");
}
#[test]
fn char_test() {
let expr = r#""#;
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#""#;
test_braille("ASCIIMath-fi", expr, r"a ~ b");
}
#[test]
fn norm() {
let expr = r#""#;
test_braille("ASCIIMath-fi", expr, r"|vec x|");
}
#[test]
fn text_and_space() {
let expr = r#""#;
test_braille("ASCIIMath-fi", expr, r#"a jotain tekstiƤ b"#);
}
#[test]
fn mixed_fraction() {
let expr = r#""#;
test_braille("ASCIIMath-fi", expr, r#"2#1/2"#);
}
#[test]
fn dots_and_bars() {
let expr = r#""#;
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#""#;
// 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#""#;
// test_braille("ASCIIMath-fi", expr, r"\cancel(x)");
// }
//
// #[test]
// fn menclose_box_and_circle () {
// let expr = r#""#;
// // box and circle aren't part of ASCIIMath
// test_braille("ASCIIMath-fi", expr, r"|overline(underline(x))|");
// }
//
// #[test]
// fn menclose_sides () {
// let expr = r#""#;
// test_braille("ASCIIMath-fi", expr, r"|x|overline(underline(x))");
// }
//
// #[test]
// fn menclose_all_sides() {
// let expr = r#""#;
// test_braille("ASCIIMath-fi", expr, r"|overline(underline(x))|");
// }