use crate::common::*; #[test] fn complex() { let expr = " "; test("sv", "SimpleSpeak", expr, "de komplexa talen"); } #[test] fn natural() { let expr = " "; test("sv", "SimpleSpeak", expr, "de naturliga talen"); } #[test] fn rationals() { let expr = " "; test("sv", "SimpleSpeak", expr, "de rationella talen"); } #[test] fn reals() { let expr = " "; test("sv", "SimpleSpeak", expr, "de reella talen"); } #[test] fn integers() { let expr = " "; test("sv", "SimpleSpeak", expr, "heltalen"); } #[test] fn msup_complex() { let expr = " 2 "; test("sv", "SimpleSpeak", expr, "C 2"); } #[test] fn msup_natural() { let expr = " 2 "; test("sv", "SimpleSpeak", expr, "N 2"); } #[test] fn msup_rationals() { let expr = " 2 "; test("sv", "SimpleSpeak", expr, "Q 2"); } #[test] fn msup_reals() { let expr = " 3 "; test("sv", "SimpleSpeak", expr, "R 3"); } #[test] fn msup_integers() { let expr = " 4 "; test("sv", "SimpleSpeak", expr, "Z 4"); } #[test] fn msup_positive_integers() { let expr = " + "; test("sv", "SimpleSpeak", expr, "de positiva heltalen"); } #[test] fn msup_negative_integers() { let expr = " - "; test("sv", "SimpleSpeak", expr, "de negativa heltalen"); } #[test] fn msup_positive_rationals() { let expr = " + "; test("sv", "SimpleSpeak", expr, "de positiva rationella talen"); } #[test] fn msup_negative_rationals() { let expr = " - "; test("sv", "SimpleSpeak", expr, "de negativa rationella talen"); } #[test] fn empty_set() { let expr = " { } "; test("sv", "SimpleSpeak", expr, "den tomma mängden"); } #[test] fn single_element_set() { let expr = " { 12} "; test("sv", "SimpleSpeak", expr, "mängden 12"); } #[test] fn multiple_element_set() { let expr = " { 5 , 10 , 15 } "; test("sv", "SimpleSpeak", expr, "mängden 5 komma 10 komma 15"); } #[test] fn set_with_colon() { let expr = " { x:x>2 } "; test("sv", "SimpleSpeak", expr, "mängden av alla x sådana att x är större än 2"); } #[test] fn set_with_bar() { let expr = " { x|x>2 } "; test("sv", "SimpleSpeak", expr, "mängden av alla x sådana att x är större än 2"); } #[test] fn element_alone() { let expr = " 3+2i "; test("sv", "SimpleSpeak", expr, "3 plus 2 i, inte tillhörande, de reella talen"); } #[test] fn element_under_sum() { let expr = " i 1 i 2 "; test("sv", "SimpleSpeak", expr, "summa över i tillhörande heltalen, av; division, 1 genom, i kvadrat, slut division;"); } #[test] fn complicated_set_with_colon() { let expr = " { x : 2 < x < 7 } "; test("sv", "SimpleSpeak", expr, "mängden av alla x tillhörande heltalen sådana att 2 är mindre än x är mindre än 7"); } #[test] fn complicated_set_with_mtext() { // as of 8/5/21, parsing of "|" is problematic an element of the example, so are needed for this test let expr = " { x | x  is an even number } "; test("sv", "SimpleSpeak", expr, "mängden av alla x tillhörande de naturliga talen sådana att x is an even number"); }