use crate::common::*; #[test] fn complex() { let expr = " "; test("fi", "SimpleSpeak", expr, "kompleksiluvut"); } #[test] fn natural() { let expr = " "; test("fi", "SimpleSpeak", expr, "luonnolliset luvut"); } #[test] fn rationals() { let expr = " "; test("fi", "SimpleSpeak", expr, "rationaaliluvut"); } #[test] fn reals() { let expr = " "; test("fi", "SimpleSpeak", expr, "reaaliluvut"); } #[test] fn integers() { let expr = " "; test("fi", "SimpleSpeak", expr, "kokonaisluvut"); } #[test] fn msup_complex() { let expr = " 2 "; test("fi", "SimpleSpeak", expr, "C 2"); } #[test] fn msup_natural() { let expr = " 2 "; test("fi", "SimpleSpeak", expr, "N 2"); } #[test] fn msup_rationals() { let expr = " 2 "; test("fi", "SimpleSpeak", expr, "Q 2"); } #[test] fn msup_reals() { let expr = " 3 "; test("fi", "SimpleSpeak", expr, "R 3"); } #[test] fn msup_integers() { let expr = " 4 "; test("fi", "SimpleSpeak", expr, "Z 4"); } #[test] fn msup_positive_integers() { let expr = " + "; test("fi", "SimpleSpeak", expr, "positiiviset kokonaisluvut"); } #[test] fn msup_negative_integers() { let expr = " - "; test("fi", "SimpleSpeak", expr, "negatiiviset kokonaisluvut"); } #[test] fn msup_positive_rationals() { let expr = " + "; test("fi", "SimpleSpeak", expr, "positiiviset rationaaliluvut"); } #[test] fn msup_negative_rationals() { let expr = " - "; test("fi", "SimpleSpeak", expr, "negatiiviset rationaaliluvut"); } #[test] fn empty_set() { let expr = " { } "; test("fi", "SimpleSpeak", expr, "tyhjä joukko"); } #[test] fn single_element_set() { let expr = " { 12} "; test("fi", "SimpleSpeak", expr, "joukko 12"); } #[test] fn multiple_element_set() { let expr = " { 5 , 10 , 15 } "; test("fi", "SimpleSpeak", expr, "joukko 5 pilkku 10 pilkku 15"); } #[test] fn set_with_colon() { let expr = " { x:x>2 } "; test("fi", "SimpleSpeak", expr, "joukko x siten että x on suurempi kuin 2"); } #[test] fn set_with_bar() { let expr = " { x|x>2 } "; test("fi", "SimpleSpeak", expr, "joukko x siten että x on suurempi kuin 2"); } #[test] fn element_alone() { let expr = " 3+2i "; test("fi", "SimpleSpeak", expr, "3 plus 2 i, ei kuulu reaaliluvut"); } #[test] fn element_under_sum() { let expr = " i 1 i 2 "; test("fi", "SimpleSpeak", expr, "summa yli i kuuluu kokonaisluvut; murtoluku, 1 per, i toiseen, loppu murtoluku;"); } #[test] fn complicated_set_with_colon() { let expr = " { x : 2 < x < 7 } "; test("fi", "SimpleSpeak", expr, "joukko x kuuluu kokonaisluvut siten että 2 on pienempi kuin x on pienempi kuin 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  on parillinen luku } "; test("fi", "SimpleSpeak", expr, "joukko x kuuluu luonnolliset luvut siten että x on parillinen luku"); }