use crate::common::*; #[test] fn msqrt_simple() { let expr = " x "; test("zh-tw", "SimpleSpeak", expr, "根號 x,"); } #[test] fn neg_without_root() { let expr = " - x - y "; test("zh-tw", "SimpleSpeak", expr, "負 x 減 y"); } #[test] fn msqrt() { let expr = " x + y "; test("zh-tw", "SimpleSpeak", expr, "根號 x 加 y 結束根號;"); } #[test] fn mroot_as_square_root() { let expr = " x 2 "; test("zh-tw", "SimpleSpeak", expr, "根號 x,"); } #[test] fn cube_root() { let expr = " x 3 "; test("zh-tw", "SimpleSpeak", expr, "根號 x 的 立方根"); } #[test] fn ordinal_root() { let expr = " x 9 "; test("zh-tw", "SimpleSpeak", expr, "根號 x 的 9 次方根"); } #[test] fn ordinal_root_2() { let expr = " x 9.1 "; test("zh-tw", "SimpleSpeak", expr, "根號 x 的 9.1 次方根"); } #[test] fn simple_mi_root() { let expr = " x n "; test("zh-tw", "SimpleSpeak", expr, "根號 x 的 n 次方根"); } #[test] fn simple_fraction_power() { let expr = " x 13 "; test("zh-tw", "SimpleSpeak", expr, "根號 x 的 3 分之 1 次方根"); }