|
| 1 | +Lineup = require './line-up' |
| 2 | + |
| 3 | +describe 'Lineup', -> |
| 4 | + it 'format smallest non-exceptional ordinal numeral 4', -> |
| 5 | + result = Lineup.format 'Gianna', 4 |
| 6 | + expect(result).toEqual 'Gianna, you are the 4th customer we serve today. Thank you!' |
| 7 | + |
| 8 | + xit 'format greatest single digit non-exceptional ordinal numeral 9', -> |
| 9 | + result = Lineup.format 'Maarten', 9 |
| 10 | + expect(result).toEqual 'Maarten, you are the 9th customer we serve today. Thank you!' |
| 11 | + |
| 12 | + xit 'format non-exceptional ordinal numeral 5', -> |
| 13 | + result = Lineup.format 'Petronila', 5 |
| 14 | + expect(result).toEqual 'Petronila, you are the 5th customer we serve today. Thank you!' |
| 15 | + |
| 16 | + xit 'format non-exceptional ordinal numeral 6', -> |
| 17 | + result = Lineup.format 'Attakullakulla', 6 |
| 18 | + expect(result).toEqual 'Attakullakulla, you are the 6th customer we serve today. Thank you!' |
| 19 | + |
| 20 | + xit 'format non-exceptional ordinal numeral 7', -> |
| 21 | + result = Lineup.format 'Kate', 7 |
| 22 | + expect(result).toEqual 'Kate, you are the 7th customer we serve today. Thank you!' |
| 23 | + |
| 24 | + xit 'format non-exceptional ordinal numeral 8', -> |
| 25 | + result = Lineup.format 'Maximiliano', 8 |
| 26 | + expect(result).toEqual 'Maximiliano, you are the 8th customer we serve today. Thank you!' |
| 27 | + |
| 28 | + xit 'format exceptional ordinal numeral 1', -> |
| 29 | + result = Lineup.format 'Mary', 1 |
| 30 | + expect(result).toEqual 'Mary, you are the 1st customer we serve today. Thank you!' |
| 31 | + |
| 32 | + xit 'format exceptional ordinal numeral 2', -> |
| 33 | + result = Lineup.format 'Haruto', 2 |
| 34 | + expect(result).toEqual 'Haruto, you are the 2nd customer we serve today. Thank you!' |
| 35 | + |
| 36 | + xit 'format exceptional ordinal numeral 3', -> |
| 37 | + result = Lineup.format 'Henriette', 3 |
| 38 | + expect(result).toEqual 'Henriette, you are the 3rd customer we serve today. Thank you!' |
| 39 | + |
| 40 | + xit 'format smallest two digit non-exceptional ordinal numeral 10', -> |
| 41 | + result = Lineup.format 'Alvarez', 10 |
| 42 | + expect(result).toEqual 'Alvarez, you are the 10th customer we serve today. Thank you!' |
| 43 | + |
| 44 | + xit 'format non-exceptional ordinal numeral 11', -> |
| 45 | + result = Lineup.format 'Jacqueline', 11 |
| 46 | + expect(result).toEqual 'Jacqueline, you are the 11th customer we serve today. Thank you!' |
| 47 | + |
| 48 | + xit 'format non-exceptional ordinal numeral 12', -> |
| 49 | + result = Lineup.format 'Juan', 12 |
| 50 | + expect(result).toEqual 'Juan, you are the 12th customer we serve today. Thank you!' |
| 51 | + |
| 52 | + xit 'format non-exceptional ordinal numeral 13', -> |
| 53 | + result = Lineup.format 'Patricia', 13 |
| 54 | + expect(result).toEqual 'Patricia, you are the 13th customer we serve today. Thank you!' |
| 55 | + |
| 56 | + xit 'format exceptional ordinal numeral 21', -> |
| 57 | + result = Lineup.format 'Washi', 21 |
| 58 | + expect(result).toEqual 'Washi, you are the 21st customer we serve today. Thank you!' |
| 59 | + |
| 60 | + xit 'format exceptional ordinal numeral 62', -> |
| 61 | + result = Lineup.format 'Nayra', 62 |
| 62 | + expect(result).toEqual 'Nayra, you are the 62nd customer we serve today. Thank you!' |
| 63 | + |
| 64 | + xit 'format exceptional ordinal numeral 100', -> |
| 65 | + result = Lineup.format 'John', 100 |
| 66 | + expect(result).toEqual 'John, you are the 100th customer we serve today. Thank you!' |
| 67 | + |
| 68 | + xit 'format exceptional ordinal numeral 101', -> |
| 69 | + result = Lineup.format 'Zeinab', 101 |
| 70 | + expect(result).toEqual 'Zeinab, you are the 101st customer we serve today. Thank you!' |
| 71 | + |
| 72 | + xit 'format non-exceptional ordinal numeral 112', -> |
| 73 | + result = Lineup.format 'Knud', 112 |
| 74 | + expect(result).toEqual 'Knud, you are the 112th customer we serve today. Thank you!' |
| 75 | + |
| 76 | + xit 'format exceptional ordinal numeral 123', -> |
| 77 | + result = Lineup.format 'Yma', 123 |
| 78 | + expect(result).toEqual 'Yma, you are the 123rd customer we serve today. Thank you!' |
0 commit comments