use crate::common::*; #[test] fn msqrt_simple() { let expr = " x "; test("en", "ClearSpeak", expr, "the square root of x,"); } #[test] fn msqrt_simple_end_root() { let expr = " x "; test_ClearSpeak("en", "ClearSpeak_Roots", "RootEnd", expr, "the square root of x, end root;"); } #[test] fn msqrt_simple_positive() { let expr = " x "; test_ClearSpeak("en", "ClearSpeak_Roots", "PosNegSqRoot", expr, "the positive square root of x,"); } #[test] fn msqrt_simple_pos_end_root() { let expr = " x "; test_ClearSpeak("en", "ClearSpeak_Roots", "PosNegSqRootEnd", expr, "the positive square root of x, end root;"); } #[test] fn msqrt_simple_pos_end_with_neg_root() { let expr = " - x - x 3 "; test_ClearSpeak("en", "ClearSpeak_Roots", "PosNegSqRootEnd", expr, "the negative square root of x, end root; minus, the positive cube root of x, end root;"); } #[test] fn mroot_simple_pos_end_with_neg_root() { let expr = " - x 3 - x "; test_ClearSpeak("en", "ClearSpeak_Roots", "PosNegSqRoot", expr, "the negative cube root of x; minus the positive square root of x,"); } #[test] fn neg_without_root() { let expr = " - x - y "; test("en", "ClearSpeak", expr, "negative x minus y"); } #[test] fn msqrt() { let expr = " x + y "; test("en", "ClearSpeak", expr, "the square root of x plus y;"); } #[test] fn mroot_as_square_root() { let expr = " x 2 "; test("en", "ClearSpeak", expr, "the square root of x,"); } #[test] fn cube_root() { let expr = " x 3 "; test("en", "ClearSpeak", expr, "the cube root of x,"); } #[test] fn ordinal_root() { let expr = " x 9 "; test("en", "ClearSpeak", expr, "the ninth root of x,"); } #[test] fn simple_mi_root() { let expr = " x n "; test("en", "ClearSpeak", expr, "the n-th root of x,"); } #[test] fn mroot_simple_pos_end_root() { let expr = " x t "; test_ClearSpeak("en", "ClearSpeak_Roots", "PosNegSqRootEnd", expr, "the positive t-th root of x, end root;"); } #[test] fn mroot_simple_end_root() { let expr = " x + y 21 "; test_ClearSpeak("en", "ClearSpeak_Roots", "RootEnd", expr, "the twenty first root of x plus y, end root;"); } #[test] fn simple_fraction_power() { let expr = " x 13 "; test("en", "ClearSpeak", expr, "the 1 third root of x,"); }