|
| 1 | +module main |
| 2 | + |
| 3 | +fn test_format_smallest_non_exceptional_ordinal_numeral_4() { |
| 4 | + assert format('Gianna', 4) == 'Gianna, you are the 4th customer we serve today. Thank you!' |
| 5 | +} |
| 6 | + |
| 7 | +fn test_format_greatest_single_digit_non_exceptional_ordinal_numeral_9() { |
| 8 | + assert format('Maarten', 9) == 'Maarten, you are the 9th customer we serve today. Thank you!' |
| 9 | +} |
| 10 | + |
| 11 | +fn test_format_non_exceptional_ordinal_numeral_5() { |
| 12 | + assert format('Petronila', 5) == 'Petronila, you are the 5th customer we serve today. Thank you!' |
| 13 | +} |
| 14 | + |
| 15 | +fn test_format_non_exceptional_ordinal_numeral_6() { |
| 16 | + assert format('Attakullakulla', 6) == 'Attakullakulla, you are the 6th customer we serve today. Thank you!' |
| 17 | +} |
| 18 | + |
| 19 | +fn test_format_non_exceptional_ordinal_numeral_7() { |
| 20 | + assert format('Kate', 7) == 'Kate, you are the 7th customer we serve today. Thank you!' |
| 21 | +} |
| 22 | + |
| 23 | +fn test_format_non_exceptional_ordinal_numeral_8() { |
| 24 | + assert format('Maximiliano', 8) == 'Maximiliano, you are the 8th customer we serve today. Thank you!' |
| 25 | +} |
| 26 | + |
| 27 | +fn test_format_exceptional_ordinal_numeral_1() { |
| 28 | + assert format('Mary', 1) == 'Mary, you are the 1st customer we serve today. Thank you!' |
| 29 | +} |
| 30 | + |
| 31 | +fn test_format_exceptional_ordinal_numeral_2() { |
| 32 | + assert format('Haruto', 2) == 'Haruto, you are the 2nd customer we serve today. Thank you!' |
| 33 | +} |
| 34 | + |
| 35 | +fn test_format_exceptional_ordinal_numeral_3() { |
| 36 | + assert format('Henriette', 3) == 'Henriette, you are the 3rd customer we serve today. Thank you!' |
| 37 | +} |
| 38 | + |
| 39 | +fn test_format_smallest_two_digit_non_exceptional_ordinal_numeral_10() { |
| 40 | + assert format('Alvarez', 10) == 'Alvarez, you are the 10th customer we serve today. Thank you!' |
| 41 | +} |
| 42 | + |
| 43 | +fn test_format_non_exceptional_ordinal_numeral_11() { |
| 44 | + assert format('Jacqueline', 11) == 'Jacqueline, you are the 11th customer we serve today. Thank you!' |
| 45 | +} |
| 46 | + |
| 47 | +fn test_format_non_exceptional_ordinal_numeral_12() { |
| 48 | + assert format('Juan', 12) == 'Juan, you are the 12th customer we serve today. Thank you!' |
| 49 | +} |
| 50 | + |
| 51 | +fn test_format_non_exceptional_ordinal_numeral_13() { |
| 52 | + assert format('Patricia', 13) == 'Patricia, you are the 13th customer we serve today. Thank you!' |
| 53 | +} |
| 54 | + |
| 55 | +fn test_format_exceptional_ordinal_numeral_21() { |
| 56 | + assert format('Washi', 21) == 'Washi, you are the 21st customer we serve today. Thank you!' |
| 57 | +} |
| 58 | + |
| 59 | +fn test_format_exceptional_ordinal_numeral_62() { |
| 60 | + assert format('Nayra', 62) == 'Nayra, you are the 62nd customer we serve today. Thank you!' |
| 61 | +} |
| 62 | + |
| 63 | +fn test_format_exceptional_ordinal_numeral_100() { |
| 64 | + assert format('John', 100) == 'John, you are the 100th customer we serve today. Thank you!' |
| 65 | +} |
| 66 | + |
| 67 | +fn test_format_exceptional_ordinal_numeral_101() { |
| 68 | + assert format('Zeinab', 101) == 'Zeinab, you are the 101st customer we serve today. Thank you!' |
| 69 | +} |
| 70 | + |
| 71 | +fn test_format_non_exceptional_ordinal_numeral_112() { |
| 72 | + assert format('Knud', 112) == 'Knud, you are the 112th customer we serve today. Thank you!' |
| 73 | +} |
| 74 | + |
| 75 | +fn test_format_exceptional_ordinal_numeral_123() { |
| 76 | + assert format('Yma', 123) == 'Yma, you are the 123rd customer we serve today. Thank you!' |
| 77 | +} |
0 commit comments