use crate::common::*; #[test] fn complex() { let expr = " "; test("en", "SimpleSpeak", expr, "the complex numbers"); } #[test] fn natural() { let expr = " "; test("en", "SimpleSpeak", expr, "the natural numbers"); } #[test] fn rationals() { let expr = " "; test("en", "SimpleSpeak", expr, "the rational numbers"); } #[test] fn reals() { let expr = " "; test("en", "SimpleSpeak", expr, "the real numbers"); } #[test] fn integers() { let expr = " "; test("en", "SimpleSpeak", expr, "the integers"); } #[test] fn msup_complex() { let expr = " 2 "; test("en", "SimpleSpeak", expr, "C 2"); } #[test] fn msup_natural() { let expr = " 2 "; test("en", "SimpleSpeak", expr, "N 2"); } #[test] fn msup_rationals() { let expr = " 2 "; test("en", "SimpleSpeak", expr, "Q 2"); } #[test] fn msup_reals() { let expr = " 3 "; test("en", "SimpleSpeak", expr, "R 3"); } #[test] fn msup_integers() { let expr = " 4 "; test("en", "SimpleSpeak", expr, "Z 4"); } #[test] fn msup_positive_integers() { let expr = " + "; test("en", "SimpleSpeak", expr, "the positive integers"); } #[test] fn msup_negative_integers() { let expr = " - "; test("en", "SimpleSpeak", expr, "the negative integers"); } #[test] fn msup_positive_rationals() { let expr = " + "; test("en", "SimpleSpeak", expr, "the positive rational numbers"); } #[test] fn msup_negative_rationals() { let expr = " - "; test("en", "SimpleSpeak", expr, "the negative rational numbers"); } #[test] fn empty_set() { let expr = " { } "; test("en", "SimpleSpeak", expr, "the empty set"); } #[test] fn single_element_set() { let expr = " { 12} "; test("en", "SimpleSpeak", expr, "the set 12"); } #[test] fn multiple_element_set() { let expr = " { 5 , 10 , 15 } "; test("en", "SimpleSpeak", expr, "the set 5 comma 10 comma 15"); } #[test] fn set_with_colon() { let expr = " { x:x>2 } "; test("en", "SimpleSpeak", expr, "the set of all x such that x is greater than 2"); } #[test] fn set_with_bar() { let expr = " { x|x>2 } "; test("en", "SimpleSpeak", expr, "the set of all x such that x is greater than 2"); } #[test] fn element_alone() { let expr = " 3+2i "; test("en", "SimpleSpeak", expr, "3 plus 2 i, is not an element of, the real numbers"); } #[test] fn element_under_sum() { let expr = " i 1 i 2 "; test("en", "SimpleSpeak", expr, "the sum over i is an element of the integers of; fraction, 1 over, i squared, end fraction;"); } #[test] fn complicated_set_with_colon() { let expr = " { x : 2 < x < 7 } "; test("en", "SimpleSpeak", expr, "the set of all x an element of the integers such that 2 is less than x is less than 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("en", "SimpleSpeak", expr, "the set of all x an element of the natural numbers such that x is an even number"); }