use crate::common::*; #[test] fn test_00() { let expr = ""; test_braille("Nemeth", expr, "⠈⠼"); } #[test] fn test_01() { let expr = ""; test_braille("Nemeth", expr, "⠸⠻"); } #[test] fn test_02() { let expr = ""; test_braille("Nemeth", expr, "⠸⠸⠻"); } #[test] fn test_03() { let expr = "§"; test_braille("Nemeth", expr, "⠈⠠⠎"); } #[test] #[ignore] fn test_04() { let expr = "§§"; // no example -- on p52, there is no space when the double section mark is shown test_braille("Nemeth", expr, "⠈⠠⠎⠀⠈⠠⠎"); } #[test] fn test_05() { let expr = ""; test_braille("Nemeth", expr, "⠫⠎"); } #[test] #[ignore] // not math (reference symbol) 46_1 fn test_06() { let expr = " A Cantor set is"; test_braille("Nemeth", expr, "⠠⠁⠀⠠⠉⠁⠝⠞⠕⠗⠘⠈⠼⠐⠀⠎⠑⠞⠀⠊⠎⠀⠄⠄⠄"); } #[test] fn test_07() { let expr = "fg"; test_braille("Nemeth", expr, "⠋⠈⠼⠛"); } #[test] #[ignore] // not math (reference symbol) 47_1 fn test_08() { let expr = " Find the index1 of the radical."; test_braille("Nemeth", expr, "⠠⠋⠊⠝⠙⠀⠞⠓⠑⠀⠊⠝⠙⠑⠭⠘⠂⠐⠀⠕⠋⠀⠞⠓⠑⠀⠗⠁⠙⠊⠉⠁⠇⠨"); } #[test] #[ignore] // not math (reference symbol) 48_a_1 fn test_09() { let expr = " Irrational numbers"; test_braille("Nemeth", expr, "⠘⠈⠼⠐⠠⠊⠗⠗⠁⠞⠊⠕⠝⠁⠇⠀⠝⠥⠍⠃⠑⠗⠎⠀⠄⠄⠄"); } #[test] #[ignore] // not math (reference symbol) 48_a_2 fn test_10() { let expr = " Irrational numbers"; test_braille("Nemeth", expr, "⠠⠊⠗⠗⠁⠞⠊⠕⠝⠁⠇⠘⠈⠼⠐⠀⠝⠥⠍⠃⠑⠗⠎⠀⠄⠄⠄"); } #[test] #[ignore] // not math (reference symbol) 48_a_3 fn test_11() { let expr = "  Irrational numbers"; test_braille("Nemeth", expr, "⠘⠈⠼⠐⠀⠠⠊⠗⠗⠁⠞⠊⠕⠝⠁⠇⠀⠝⠥⠍⠃⠑⠗⠎⠀⠄⠄⠄"); } #[test] #[ignore] // not math (reference symbol) 48_a_4 fn test_12() { let expr = " sets."; test_braille("Nemeth", expr, "⠀⠄⠄⠄⠎⠑⠞⠎⠨⠈⠼"); } #[test] #[ignore] // not math (reference symbol) 48_a_5 fn test_13() { let expr = " sets."; test_braille("Nemeth", expr, "⠀⠄⠄⠄⠀⠎⠑⠞⠎⠈⠼⠨⠐"); } #[test] #[ignore] // not math (reference symbol) 48_b_2 fn test_14() { let expr = " A Cantor1 set is"; test_braille("Nemeth", expr, "⠠⠁⠀⠠⠉⠁⠝⠞⠕⠗⠘⠂⠐⠀⠎⠑⠞⠀⠊⠎⠀⠄⠄⠄"); } #[test] #[ignore] // not math (reference symbol) 48_b_3 fn test_15() { let expr = "10."; test_braille("Nemeth", expr, "⠘⠈⠼⠐⠂⠴⠨"); } #[test] #[ignore] // not math (reference symbol) 48_b_4 fn test_16() { let expr = "1."; test_braille("Nemeth", expr, "⠼⠂⠘⠈⠼⠨⠐"); } #[test] #[ignore] // not math (reference symbol) 48_b_5 fn test_17() { let expr = "1."; test_braille("Nemeth", expr, "⠼⠂⠨⠘⠈⠼"); } #[test] #[ignore] // not math (reference symbol) 48_b_6 fn test_18() { let expr = "  For extra credit."; test_braille("Nemeth", expr, "⠘⠈⠼⠐⠀⠠⠋⠕⠗⠀⠑⠭⠞⠗⠁⠀⠉⠗⠑⠙⠊⠞⠨"); } #[test] fn test_19() { let expr = "0"; test_braille("Nemeth", expr, "⠼⠴"); } #[test] fn test_20() { let expr = "1"; test_braille("Nemeth", expr, "⠼⠂"); } #[test] fn test_21() { let expr = "2"; test_braille("Nemeth", expr, "⠼⠆"); } #[test] fn test_22() { let expr = "3"; test_braille("Nemeth", expr, "⠼⠒"); } #[test] fn test_23() { let expr = "4"; test_braille("Nemeth", expr, "⠼⠲"); } #[test] fn test_24() { let expr = "5"; test_braille("Nemeth", expr, "⠼⠢"); } #[test] fn test_25() { let expr = "6"; test_braille("Nemeth", expr, "⠼⠖"); } #[test] fn test_26() { let expr = "7"; test_braille("Nemeth", expr, "⠼⠶"); } #[test] fn test_27() { let expr = "8"; test_braille("Nemeth", expr, "⠼⠦"); } #[test] fn test_28() { let expr = "9"; test_braille("Nemeth", expr, "⠼⠔"); } #[test] fn test_29() { let expr = ","; test_braille("Nemeth", expr, "⠠"); } #[test] #[ignore] fn test_30() { // needs some context to know what is correct let expr = "."; test_braille("Nemeth", expr, "⠨⠐"); } #[test] #[ignore] // duplicate fn test_31() { let expr = "."; test_braille("Nemeth", expr, "⠨⠐"); } #[test] fn test_32() { let expr = ","; test_braille("Nemeth", expr, "⠠"); } #[test] fn test_33() { // 8_a_1 let expr = "1,378"; // corrected test_braille("Nemeth", expr, "⠼⠂⠠⠒⠶⠦"); } #[test] fn test_34() { // 8_a_2 let expr = "1.378"; test_braille("Nemeth", expr, "⠼⠂⠨⠒⠶⠦"); } #[test] fn test_35() { // 8_a_3 let expr = "3.76"; test_braille("Nemeth", expr, "⠼⠒⠨⠶⠖"); } #[test] fn test_36() { // 8_a_4 let expr = "3,76"; test_braille("Nemeth", expr, "⠼⠒⠠⠀⠼⠶⠖"); } #[test] fn test_37() { // 8_b_1 let expr = "1,478"; // corrected test_braille("Nemeth", expr, "⠼⠂⠠⠲⠶⠦"); } #[test] fn test_38() { // improper markup changed to include spaces -- MathJax markup using \; for the extra space // let expr = "100,200,300"; let expr = "100,200,300"; test_braille("Nemeth", expr, "⠼⠂⠴⠴⠠⠀⠼⠆⠴⠴⠠⠀⠼⠒⠴⠴"); } #[test] fn test_38_wiris() { // improper markup changed to include spaces -- WIRIS output with space let expr = "100, 200, 300"; test_braille("Nemeth", expr, "⠼⠂⠴⠴⠠⠀⠼⠆⠴⠴⠠⠀⠼⠒⠴⠴"); } #[test] fn test_39() { // 8_c_1 let expr = ".35"; test_braille("Nemeth", expr, "⠼⠨⠒⠢"); } #[test] fn test_40() { // 8_c_2 let expr = "3.14"; test_braille("Nemeth", expr, "⠼⠒⠨⠂⠲"); } #[test] fn test_41() { // 8_c_3 let expr = ".2a1a2a3"; test_braille("Nemeth", expr, "⠼⠨⠆⠁⠂⠁⠆⠁⠒"); } #[test] fn test_42() { // 8_c_4 let expr = ".a1a2a3"; test_braille("Nemeth", expr, "⠨⠐⠁⠂⠁⠆⠁⠒"); } #[test] fn test_43() { // 8_c_5 let expr = ".1+.2=.---"; // corrected test_braille("Nemeth", expr, "⠼⠨⠂⠬⠨⠆⠀⠨⠅⠀⠨⠐⠀⠤⠤⠤⠤"); } #[test] fn test_44() { // 9_a_1 let expr = "27"; test_braille("Nemeth", expr, "⠼⠆⠶"); } #[test] #[ignore] // text (with contractions) fn test_45() { // 9_a_2 let expr = "There were 7 balls."; test_braille("Nemeth", expr, "⠠⠞⠓⠑⠗⠑⠀⠺⠑⠗⠑⠀⠼⠶⠀⠃⠁⠇⠇⠎⠨⠐"); } #[test] fn test_46() { // 9_a_3 let expr = "1+x+y=0"; test_braille("Nemeth", expr, "⠼⠂⠬⠭⠬⠽⠀⠨⠅⠀⠼⠴"); } #[test] fn test_47() { let expr = "y=2sinx"; test_braille("Nemeth", expr, "⠽⠀⠨⠅⠀⠼⠆⠎⠊⠝⠀⠭"); } #[test] #[ignore] // missing input fn test_48() { let expr = ""; test_braille("Nemeth", expr, ""); } #[test] fn test_49() { // 9_a_5 let expr = "sin1"; test_braille("Nemeth", expr, "⠎⠊⠝⠀⠼⠂"); } #[test] fn test_50() { // 9_a_6 let expr = "sin22x"; test_braille("Nemeth", expr, "⠎⠊⠝⠘⠆⠀⠼⠆⠭"); } #[test] fn test_51() { // 9_a_7 let expr = "0.3333"; test_braille("Nemeth", expr, "⠼⠴⠨⠒⠒⠒⠀⠄⠄⠄⠀⠼⠒⠀⠄⠄⠄"); } #[test] fn test_52() { // 9_a_9 let expr = "1"; test_braille("Nemeth", expr, "⠫⠪⠀⠼⠂"); } #[test] fn test_53() { // 9_a_10 let expr = "(x=0)"; test_braille("Nemeth", expr, "⠷⠭⠀⠨⠅⠀⠼⠴⠾"); } #[test] fn test_54() { // 9_a_11 let expr = "115"; // this is the linear form, but the book does 2D test_braille("Nemeth", expr, "⠹⠂⠂⠌⠢⠼"); } #[test] fn test_55() { // 9_a_12 let expr = " 1+3 4+5 3+4 5+6"; // this is the linear form, but the book does 2D test_braille("Nemeth", expr, "⠠⠹⠹⠂⠬⠒⠌⠲⠬⠢⠼⠠⠌⠹⠒⠬⠲⠌⠢⠬⠖⠼⠠⠼"); } #[test] fn test_56() { // 9_a_13 let expr = " (1x) d dx(2x)2x d dx(1x) (1x )2 1+( 2x 1x )2"; // this is the linear form, but the book does 2D test_braille("Nemeth", expr, "⠠⠠⠹⠠⠹⠷⠂⠤⠭⠾⠹⠙⠌⠙⠭⠼⠷⠆⠭⠾⠤⠆⠭⠹⠙⠌⠙⠭⠼⠷⠂⠤⠭⠾⠠⠌⠷⠂⠤⠭⠾⠘⠆⠐⠠⠼⠠⠠⠌⠂⠬⠷⠹⠆⠭⠌⠂⠤⠭⠼⠾⠘⠆⠐⠠⠠⠼"); } #[test] fn test_57() { // 9_a_14 let expr = "1"; test_braille("Nemeth", expr, "⠤⠼⠂"); } #[test] fn test_58() { // 9_a_15 let expr = ".3"; test_braille("Nemeth", expr, "⠤⠼⠨⠒"); } #[test] fn test_59() { // 9_b_1 // correct input to use open/close quotes as in book let expr = "3 dogs"; // corrected test_braille("Nemeth", expr, "⠦⠼⠒⠀⠙⠕⠛⠎⠴"); } #[test] #[ignore] // text (has contraction) fn test_60() { // 9_b_2 // probably input is not a good match let expr = "Probability ---0"; test_braille("Nemeth", expr, "⠠⠏⠗⠕⠃⠁⠃⠊⠇⠊⠞⠽⠀⠤⠤⠤⠼⠴"); } #[test] fn test_61() { // 9_b_3 // corrected input to use open quote let expr = ".5"; // corrected test_braille("Nemeth", expr, "⠦⠼⠨⠢"); } #[test] fn test_62() { // 9_b_4 // corrected input to use open quote let expr = "4"; // corrected test_braille("Nemeth", expr, "⠦⠤⠼⠲"); } #[test] #[ignore] // not clear what linear output should be fn test_63() { // 9_c_1 let expr = " |1234|"; // this is the linear form, but the book does 2D test_braille("Nemeth", expr, "⠠⠳⠼⠂⠀⠼⠆⠠⠳⠀⠠⠳⠤⠼⠒⠀⠤⠼⠲⠠⠳"); } #[test] #[ignore] // not clear what linear output should be fn test_64() { // 9_c_2 let expr = " |1 12 12 1 4r|"; // this is the linear form, but the book does 2D test_braille("Nemeth", expr, "⠠⠳⠼⠂⠀⠹⠂⠌⠆⠼⠠⠳⠀⠠⠳⠹⠂⠌⠆⠼⠀⠹⠂⠌⠲⠗⠼⠠⠳"); } #[test] fn test_65() { // 9_d_1 let expr = "3§4"; // corrected test_braille("Nemeth", expr, "⠼⠒⠈⠠⠎⠼⠲"); } #[test] fn test_66() { // 9_d_2 let expr = "3#4"; // corrected test_braille("Nemeth", expr, "⠼⠒⠨⠼⠼⠲"); } #[test] fn test_67() { // 9_d_3 let expr = "34"; // corrected test_braille("Nemeth", expr, "⠼⠒⠈⠼⠼⠲"); } #[test] #[ignore] // text reference fn test_68() { // 9_d_4 let expr = "See page  151."; test_braille("Nemeth", expr, "⠠⠎⠑⠑⠀⠏⠁⠛⠑⠀⠼⠂⠢⠘⠂⠨⠐"); } #[test] #[ignore] // text reference fn test_69() { // 9_d_5 let expr = "3"; test_braille("Nemeth", expr, "⠸⠻⠼⠒"); } #[test] fn test_70() { // 9_e_1 let expr = "3"; test_braille("Nemeth", expr, "⠨⠼⠒"); } #[test] fn test_71() { // 9_e_2 let expr = "0"; test_braille("Nemeth", expr, "⠸⠼⠴"); } #[test] fn test_72() { // 9_e_3 let expr = ".3"; // corrected -- added '.' after numeric indicator test_braille("Nemeth", expr, "⠨⠼⠨⠒"); } #[test] fn test_73() { // 9_e_4 let expr = "2"; test_braille("Nemeth", expr, "⠈⠼⠆"); } #[test] fn test_74() { // 9_e_5 let expr = "4356"; test_braille("Nemeth", expr, "⠸⠼⠲⠒⠸⠼⠢⠖"); } #[test] #[ignore] // missing input fn test_75() { let expr = ""; test_braille("Nemeth", expr, ""); } #[test] #[ignore] // missing input fn test_76() { let expr = ""; test_braille("Nemeth", expr, ""); } #[test] fn test_77() { // 9_f_1 let expr = " 1to 1 correspondence"; test_braille("Nemeth", expr, "⠼⠂⠤⠞⠕⠤⠼⠂⠀⠉⠕⠗⠗⠑⠎⠏⠕⠝⠙⠑⠝⠉⠑"); }