// Other tests for LaTeX generation
use crate::common::*;
#[test]
fn menclose_strikes () {
let expr = r#""#;
test_braille("LaTeX", expr, r"\overwrite{\overwrite{\overwrite{\overwrite{x}{\senwline}}{\neswline}}{\vline}}{\hline}");
}
#[test]
fn menclose_box_and_circle () {
let expr = r#""#;
test_braille("LaTeX", expr, r"\boxed{\circle{x}}");
}
#[test]
fn menclose_sides () {
let expr = r#""#;
test_braille("LaTeX", expr, r"|x|\overline{\underline{x}}");
}
#[test]
fn menclose_all_sides() {
let expr = r#""#;
test_braille("LaTeX", expr, r"\boxed{x}");
}
#[test]
fn menclose_diagonal_arrows() {
let expr = r#""#;
test_braille("LaTeX", expr, r"\overwrite{\overwrite{\overwrite{\overwrite{x}{\nearrow}}{\searrow}}{\swarrow}}{\nwarrow}");
}
#[test]
fn menclose_double_arrows() {
// extra spaces are deliberate -- they shouldn't make a difference
let expr = r#""#;
test_braille("LaTeX", expr, r"\overwrite{\overwrite{\overwrite{\overwrite{x}{\updownarrow}}{\longleftrightarrow}}{\neswarrow}}{\nwsearrow}");
}
#[test]
fn menclose_horiz_and_vert_arrows() {
let expr = r#""#;
test_braille("LaTeX", expr, r"\overwrite{\overwrite{\overwrite{\overwrite{x}{\longleftarrow}}{\longrightarrow}}{\uparrow}}{\downarrow}");
}