use crate::common::*; #[test] fn complex() { let expr = " "; test("zh-tw", "SimpleSpeak", expr, "複數集"); } #[test] fn natural() { let expr = " "; test("zh-tw", "SimpleSpeak", expr, "自然數集"); } #[test] fn rationals() { let expr = " "; test("zh-tw", "SimpleSpeak", expr, "有理數集"); } #[test] fn reals() { let expr = " "; test("zh-tw", "SimpleSpeak", expr, "實數集"); } #[test] fn integers() { let expr = " "; test("zh-tw", "SimpleSpeak", expr, "整數集"); } #[test] fn msup_complex() { let expr = " 2 "; test("zh-tw", "SimpleSpeak", expr, "C 2"); } #[test] fn msup_natural() { let expr = " 2 "; test("zh-tw", "SimpleSpeak", expr, "N 2"); } #[test] fn msup_rationals() { let expr = " 2 "; test("zh-tw", "SimpleSpeak", expr, "Q 2"); } #[test] fn msup_reals() { let expr = " 3 "; test("zh-tw", "SimpleSpeak", expr, "R 3"); } #[test] fn msup_integers() { let expr = " 4 "; test("zh-tw", "SimpleSpeak", expr, "Z 4"); } #[test] fn msup_positive_integers() { let expr = " + "; test("zh-tw", "SimpleSpeak", expr, "正 整數集"); } #[test] fn msup_negative_integers() { let expr = " - "; test("zh-tw", "SimpleSpeak", expr, "負 整數集"); } #[test] fn msup_positive_rationals() { let expr = " + "; test("zh-tw", "SimpleSpeak", expr, "正 有理數集"); } #[test] fn msup_negative_rationals() { let expr = " - "; test("zh-tw", "SimpleSpeak", expr, "負 有理數集"); } #[test] fn empty_set() { let expr = " { } "; test("zh-tw", "SimpleSpeak", expr, "空集"); } #[test] fn single_element_set() { let expr = " { 12} "; test("zh-tw", "SimpleSpeak", expr, "集合 12"); } #[test] fn multiple_element_set() { let expr = " { 5 , 10 , 15 } "; test("zh-tw", "SimpleSpeak", expr, "集合 5 逗號 10 逗號 15"); } #[test] fn set_with_colon() { let expr = " { x:x>2 } "; test("zh-tw", "SimpleSpeak", expr, "集合 x 滿足 x 大於 2"); } #[test] fn set_with_bar() { let expr = " { x|x>2 } "; test("zh-tw", "SimpleSpeak", expr, "集合 x 滿足 x 大於 2"); } #[test] fn element_alone() { let expr = " 3+2i "; test("zh-tw", "SimpleSpeak", expr, "3 加 2 i, 不屬於 實數集"); } #[test] fn element_under_sum() { let expr = " i 1 i 2 "; test("zh-tw", "SimpleSpeak", expr, "和 下層 i 屬於 整數集 項目; 分數 i 平方, 分之 1 結束分數;"); } #[test] fn complicated_set_with_colon() { let expr = " { x : 2 < x < 7 } "; test("zh-tw", "SimpleSpeak", expr, "集合 x 屬於 整數集 滿足 2 小於 x 小於 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  是 偶 數 } "; test("zh-tw", "SimpleSpeak", expr, "集合 x 屬於 自然數集 滿足 x 是 偶 數"); }