use crate::common::*; #[test] fn sum_both() { let expr = " n=1 10 n "; test("zh-tw", "SimpleSpeak", expr, "和 從 n 等於 1 到 10 項目 n"); } #[test] fn sum_under() { let expr = " S i "; test("zh-tw", "SimpleSpeak", expr, "和 下層 大寫 s 項目 i"); } #[test] fn sum_both_msubsup() { let expr = " n=1 10 n "; test("zh-tw", "SimpleSpeak", expr, "和 從 n 等於 1 到 10 項目 n"); } #[test] fn sum_sub() { let expr = " S i "; test("zh-tw", "SimpleSpeak", expr, "和 下層 大寫 s 項目 i"); } #[test] fn sum() { let expr = " ai "; test("zh-tw", "SimpleSpeak", expr, "和 項目 a 下標 i"); } #[test] fn product_both() { let expr = " n=1 10 n "; test("zh-tw", "SimpleSpeak", expr, "積 從 n 等於 1 到 10 項目 n"); } #[test] fn product_under() { let expr = " S i "; test("zh-tw", "SimpleSpeak", expr, "積 下層 大寫 s 項目 i"); } #[test] fn product() { let expr = " ai "; test("zh-tw", "SimpleSpeak", expr, "積 項目 a 下標 i"); } #[test] fn intersection_both() { let expr = " i=1 10 Si "; test("zh-tw", "SimpleSpeak", expr, "交集 從 i 等於 1 到 10 項目; 大寫 s 下標 i"); } #[test] fn intersection_under() { let expr = " C Si "; test("zh-tw", "SimpleSpeak", expr, "交集 下層 大寫 c 項目, 大寫 s 下標 i"); } #[test] fn intersection() { let expr = " Si "; test("zh-tw", "SimpleSpeak", expr, "交集 項目 大寫 s 下標 i"); } #[test] fn union_both() { let expr = " i=1 10 Si "; test("zh-tw", "SimpleSpeak", expr, "聯集 從 i 等於 1 到 10 項目; 大寫 s 下標 i"); } #[test] fn union_under() { let expr = " C Si "; test("zh-tw", "SimpleSpeak", expr, "聯集 下層 大寫 c 項目, 大寫 s 下標 i"); } #[test] fn union() { let expr = " Si "; test("zh-tw", "SimpleSpeak", expr, "聯集 項目 大寫 s 下標 i"); } #[test] fn integral_both() { let expr = " 0 1 f(x ) dx "; test("zh-tw", "SimpleSpeak", expr, "積分 從 0 到 1 項目, f x; d x"); } #[test] fn integral_under() { let expr = " f(x ) dx "; test("zh-tw", "SimpleSpeak", expr, "積分 下層 實數集 項目; f x d x"); } #[test] fn integral() { let expr = " f(x ) dx "; test("zh-tw", "SimpleSpeak", expr, "積分 項目 f x d x"); }