use crate::common::*; #[test] fn msqrt_simple() { let expr = " x "; test("zh-tw", "ClearSpeak", expr, "根號 x,"); } #[test] fn msqrt_simple_end_root() { let expr = " x "; test_ClearSpeak("zh", "ClearSpeak_Roots", "RootEnd", expr, "根號 x, 結束根號;"); } #[test] fn msqrt_simple_positive() { let expr = " x "; test_ClearSpeak("zh", "ClearSpeak_Roots", "PosNegSqRoot", expr, "根號 x,"); } #[test] fn msqrt_simple_pos_end_root() { let expr = " x "; test_ClearSpeak("zh", "ClearSpeak_Roots", "PosNegSqRootEnd", expr, "根號 x, 結束根號;"); } #[test] fn msqrt_simple_pos_end_with_neg_root() { let expr = " - x - x 3 "; test_ClearSpeak("zh", "ClearSpeak_Roots", "PosNegSqRootEnd", expr, "負 根號 x, 結束根號; 減 x 的 立方根;"); } #[test] fn mroot_simple_pos_end_with_neg_root() { let expr = " - x 3 - x "; test_ClearSpeak("zh", "ClearSpeak_Roots", "PosNegSqRoot", expr, "負 x 的 立方根; 減 根號 x,"); } #[test] fn neg_without_root() { let expr = " - x - y "; test("zh-tw", "ClearSpeak", expr, "負 x 減 y"); } #[test] fn msqrt() { let expr = " x + y "; test("zh-tw", "ClearSpeak", expr, "根號 x 加 y;"); } #[test] fn mroot_as_square_root() { let expr = " x 2 "; test("zh-tw", "ClearSpeak", expr, "根號 x,"); } #[test] fn cube_root() { let expr = " x 3 "; test("zh-tw", "ClearSpeak", expr, "x 的 立方根;"); } #[test] fn ordinal_root() { let expr = " x 9 "; test("zh-tw", "ClearSpeak", expr, "x 的 9 次方根;"); } #[test] fn simple_mi_root() { let expr = " x n "; test("zh-tw", "ClearSpeak", expr, "x 的 n 次方根;"); } #[test] fn mroot_simple_pos_end_root() { let expr = " x t "; test_ClearSpeak("zh", "ClearSpeak_Roots", "PosNegSqRootEnd", expr, "x 的 t 次方根;"); } #[test] fn mroot_simple_end_root() { let expr = " x + y 21 "; test_ClearSpeak("zh", "ClearSpeak_Roots", "RootEnd", expr, "x 加 y 的 21 次方根;"); } #[test] fn simple_fraction_power() { let expr = " x 13 "; test("zh-tw", "ClearSpeak", expr, "x 的 3 分之 1 次方根;"); }