use crate::common::*; #[test] fn complex() { let expr = " "; test("en", "ClearSpeak", expr, "the complex numbers"); } #[test] fn natural() { let expr = " "; test("en", "ClearSpeak", expr, "the natural numbers"); } #[test] fn rationals() { let expr = " "; test("en", "ClearSpeak", expr, "the rational numbers"); } #[test] fn reals() { let expr = " "; test("en", "ClearSpeak", expr, "the real numbers"); } #[test] fn integers() { let expr = " "; test("en", "ClearSpeak", expr, "the integers"); } #[test] fn msup_complex() { let expr = " 2 "; test("en", "ClearSpeak", expr, "C 2"); } #[test] fn msup_natural() { let expr = " 2 "; test("en", "ClearSpeak", expr, "N 2"); } #[test] fn msup_rationals() { let expr = " 2 "; test("en", "ClearSpeak", expr, "Q 2"); } #[test] fn msup_reals() { let expr = " 3 "; test("en", "ClearSpeak", expr, "R 3"); } #[test] fn msup_integers() { let expr = " 4 "; test("en", "ClearSpeak", expr, "Z 4"); } #[test] fn msup_positive_integers() { let expr = " + "; test("en", "ClearSpeak", expr, "the positive integers"); } #[test] fn msup_negative_integers() { let expr = " - "; test("en", "ClearSpeak", expr, "the negative integers"); } #[test] fn msup_positive_rationals() { let expr = " + "; test("en", "ClearSpeak", expr, "the positive rational numbers"); } #[test] fn msup_negative_rationals() { let expr = " - "; test("en", "ClearSpeak", expr, "the negative rational numbers"); } #[test] fn empty_set() { let expr = " { } "; test("en", "ClearSpeak", expr, "the empty set"); } #[test] fn single_element_set() { let expr = " { 12} "; test("en", "ClearSpeak", expr, "the set 12"); } #[test] fn multiple_element_set() { let expr = " { 5 , 10 , 15 } "; test("en", "ClearSpeak", expr, "the set 5 comma 10 comma 15"); } #[test] fn set_with_colon() { let expr = " { x:x>2 } "; test("en", "ClearSpeak", 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", "ClearSpeak", expr, "the set of all x such that x is greater than 2"); } #[test] fn element_alone() { let expr = " 3+2i "; test("en", "ClearSpeak", expr, "3 plus 2 i, is not a member of, the real numbers"); } #[test] fn element_under_sum() { let expr = " i 1 i 2 "; test("en", "ClearSpeak", expr, "the sum over i is a member of the integers of; the fraction with numerator 1; and denominator i squared;"); } #[test] fn complicated_set_with_colon() { let expr = " { x : 2 < x < 7 } "; test("en", "ClearSpeak", expr, "the set of all x in 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 in the example, so are needed for this test let expr = " { x | x is an even number } "; test("en", "ClearSpeak", expr, "the set of all x in the natural numbers such that x is an even number"); } #[test] fn set_with_bar_member() { let expr = " { x : x > 5 } "; test_ClearSpeak("en", "ClearSpeak_SetMemberSymbol", "Member", expr, "the set of all x member of the integers such that x is greater than 5"); } #[test] fn element_alone_member() { let expr = " 3+2i "; test_ClearSpeak("en", "ClearSpeak_SetMemberSymbol", "Member", expr, "3 plus 2 i, is not a member of, the real numbers"); } #[test] fn element_under_sum_member() { let expr = " i 1 i 2 "; test_ClearSpeak("en", "ClearSpeak_SetMemberSymbol", "Member", expr, "the sum over i is a member of the integers of; the fraction with numerator 1; and denominator i squared;"); } #[test] fn set_with_bar_element() { let expr = " { x : x > 5 } "; test_ClearSpeak("en", "ClearSpeak_SetMemberSymbol", "Element", expr, "the set of all x element of the integers such that x is greater than 5"); } #[test] fn element_alone_element() { let expr = " 3+2i "; test_ClearSpeak("en", "ClearSpeak_SetMemberSymbol", "Element", expr, "3 plus 2 i, is not an element of, the real numbers"); } #[test] fn element_under_sum_element() { let expr = " i 1 i 2 "; test_ClearSpeak("en", "ClearSpeak_SetMemberSymbol", "Element", expr, "the sum over i is an element of the integers of; the fraction with numerator 1; and denominator i squared;"); } #[test] fn set_with_bar_in() { let expr = " { x : x > 5 } "; test_ClearSpeak("en", "ClearSpeak_SetMemberSymbol", "In", expr, "the set of all x in the integers such that x is greater than 5"); } #[test] fn element_alone_in() { let expr = " 3+2i "; test_ClearSpeak("en", "ClearSpeak_SetMemberSymbol", "In", expr, "3 plus 2 i, is not in the real numbers"); } #[test] fn element_under_sum_in() { let expr = " i 1 i 2 "; test_ClearSpeak("en", "ClearSpeak_SetMemberSymbol", "In", expr, "the sum over i is in the integers of; the fraction with numerator 1; and denominator i squared;"); } #[test] fn set_with_bar_belongs() { let expr = " { x : x > 5 } "; test_ClearSpeak("en", "ClearSpeak_SetMemberSymbol", "Belongs", expr, "the set of all x belonging to the integers such that x is greater than 5"); } #[test] fn element_alone_belongs() { let expr = " 3+2i "; test_ClearSpeak("en", "ClearSpeak_SetMemberSymbol", "Belongs", expr, "3 plus 2 i, does not belong to, the real numbers"); } #[test] fn element_under_sum_belongs() { let expr = " i 1 i 2 "; test_ClearSpeak("en", "ClearSpeak_SetMemberSymbol", "Belongs", expr, "the sum over i belongs to the integers of; the fraction with numerator 1; and denominator i squared;"); } #[test] fn set_member_woall() { let expr = " { x : x > 5 } "; test_ClearSpeak_prefs("en", vec![("ClearSpeak_SetMemberSymbol", "Member"), ("ClearSpeak_Sets", "woAll")], expr, "the set of x member of the integers such that x is greater than 5"); } #[test] fn multiple_element_set_woall() { let expr = " { 5 , 10 , 15 } "; test_ClearSpeak("en", "ClearSpeak_Sets", "woAll", expr, "the set 5 comma 10 comma 15"); } #[test] fn multiple_element_set_silent_bracket() { let expr = " { 5 , 10 , 15 } "; test_ClearSpeak("en", "ClearSpeak_Sets", "SilentBracket", expr, "5 comma 10 comma 15"); } #[test] fn silent_bracket() { let expr = " {x|x>2} "; test_ClearSpeak("en", "ClearSpeak_Sets", "SilentBracket", expr, "the set of all x such that x is greater than 2"); }