diff --git a/tests/others/mapping.rs b/tests/others/mapping.rs new file mode 100644 index 0000000..9700d36 --- /dev/null +++ b/tests/others/mapping.rs @@ -0,0 +1,18 @@ +use alemat::{ + elements::{grouping::Row, Frac, Ident}, + MathMl, +}; + +#[test] +fn map_in_row() { + let out = MathMl::with_content( + Frac::builder() + .num(Ident::from("x")) + .denom(Ident::from("y")) + .build(), + ) + .map(Row::from) + .render(); + + crate::snap_test!(out, name: "others_map_in_row"); +} diff --git a/tests/others/mod.rs b/tests/others/mod.rs index 0c02ca0..071ff78 100644 --- a/tests/others/mod.rs +++ b/tests/others/mod.rs @@ -1,4 +1,5 @@ mod annotation; +mod mapping; mod mfrac; mod mi; mod mn; diff --git a/tests/snapshots/others_map_in_row.snap b/tests/snapshots/others_map_in_row.snap new file mode 100644 index 0000000..35f9b62 --- /dev/null +++ b/tests/snapshots/others_map_in_row.snap @@ -0,0 +1,17 @@ +--- +source: tests/others/mapping.rs +expression: input +--- + + + + + x + + + y + + + + +