use crate::common::*; #[test] fn msqrt_simple() { let expr = " x "; test("sv", "ClearSpeak", expr, "kvadratroten ur x,"); } #[test] fn msqrt_simple_end_root() { let expr = " x "; test_ClearSpeak("sv", "ClearSpeak_Roots", "RootEnd", expr, "kvadratroten ur x, slut rot;"); } #[test] fn msqrt_simple_positive() { let expr = " x "; test_ClearSpeak("sv", "ClearSpeak_Roots", "PosNegSqRoot", expr, "positiva kvadratroten ur x,"); } #[test] fn msqrt_simple_pos_end_root() { let expr = " x "; test_ClearSpeak("sv", "ClearSpeak_Roots", "PosNegSqRootEnd", expr, "positiva kvadratroten ur x, slut rot;"); } #[test] fn msqrt_simple_pos_end_with_neg_root() { let expr = " - x - x 3 "; test_ClearSpeak("sv", "ClearSpeak_Roots", "PosNegSqRootEnd", expr, "negativa kvadratroten ur x, slut rot; minus, positiva kubikroten ur x, slut rot;"); } #[test] fn mroot_simple_pos_end_with_neg_root() { let expr = " - x 3 - x "; test_ClearSpeak("sv", "ClearSpeak_Roots", "PosNegSqRoot", expr, "negativa kubikroten ur x; minus positiva kvadratroten ur x,"); } #[test] fn neg_without_root() { let expr = " - x - y "; test("sv", "ClearSpeak", expr, "minus x minus y"); } #[test] fn msqrt() { let expr = " x + y "; test("sv", "ClearSpeak", expr, "kvadratroten ur x plus y;"); } #[test] fn mroot_as_square_root() { let expr = " x 2 "; test("sv", "ClearSpeak", expr, "kvadratroten ur x,"); } #[test] fn cube_root() { let expr = " x 3 "; test("sv", "ClearSpeak", expr, "kubikroten ur x,"); } #[test] fn ordinal_root() { let expr = " x 9 "; test("sv", "ClearSpeak", expr, "nionde roten ur x,"); } #[test] fn simple_mi_root() { let expr = " x n "; test("sv", "ClearSpeak", expr, "roten av grad n ur x,"); } #[test] fn mroot_simple_pos_end_root() { let expr = " x t "; test_ClearSpeak("sv", "ClearSpeak_Roots", "PosNegSqRootEnd", expr, "positiva roten av grad t ur x, slut rot;"); } #[test] fn mroot_simple_end_root() { let expr = " x + y 21 "; test_ClearSpeak("sv", "ClearSpeak_Roots", "RootEnd", expr, "tjugo första roten ur x plus y, slut rot;"); } #[test] fn simple_fraction_power() { let expr = " x 13 "; test("sv", "ClearSpeak", expr, "roten av grad, en tredjedel ur x,"); }