|
| 1 | +var Isogram = require('./isogram'); |
| 2 | + |
| 3 | +describe('Isogram Test Suite', function () { |
| 4 | + it('duplicates', function () { |
| 5 | + var word = new Isogram('duplicates'); |
| 6 | + |
| 7 | + expect(word.isIsogram()).toEqual(true); |
| 8 | + }); |
| 9 | + |
| 10 | + it('eleven', function () { |
| 11 | + var word = new Isogram('eleven'); |
| 12 | + |
| 13 | + expect(word.isIsogram()).toEqual(false); |
| 14 | + }); |
| 15 | + |
| 16 | + it('subdermatoglyphic', function () { |
| 17 | + var word = new Isogram('subdermatoglyphic'); |
| 18 | + |
| 19 | + expect(word.isIsogram()).toEqual(true); |
| 20 | + }); |
| 21 | + |
| 22 | + it('Alphabet', function () { |
| 23 | + var word = new Isogram('Alphabet'); |
| 24 | + |
| 25 | + expect(word.isIsogram()).toEqual(false); |
| 26 | + }); |
| 27 | + |
| 28 | + it('thumbscrew-japingly', function () { |
| 29 | + var word = new Isogram('thumbscrew-japingly'); |
| 30 | + |
| 31 | + expect(word.isIsogram()).toEqual(true); |
| 32 | + }); |
| 33 | + |
| 34 | + it('Hjelmqvist-Gryb-Zock-Pfund-Wax', function () { |
| 35 | + var word = new Isogram('Hjelmqvist-Gryb-Zock-Pfund-Wax'); |
| 36 | + |
| 37 | + expect(word.isIsogram()).toEqual(true); |
| 38 | + }); |
| 39 | + |
| 40 | + it('Heizölrückstoßabdämpfung', function () { |
| 41 | + var word = new Isogram('Heizölrückstoßabdämpfung'); |
| 42 | + |
| 43 | + expect(word.isIsogram()).toEqual(true); |
| 44 | + }); |
| 45 | + |
| 46 | + it('the quick brown fox', function () { |
| 47 | + var word = new Isogram('the quick brown fox'); |
| 48 | + |
| 49 | + expect(word.isIsogram()).toEqual(false); |
| 50 | + }); |
| 51 | + |
| 52 | + it('Emily Jung Schwartzkopf', function () { |
| 53 | + var word = new Isogram('Emily Jung Schwartzkopf'); |
| 54 | + |
| 55 | + expect(word.isIsogram()).toEqual(true); |
| 56 | + }); |
| 57 | + |
| 58 | + it('éléphant', function () { |
| 59 | + var word = new Isogram('éléphant'); |
| 60 | + |
| 61 | + expect(word.isIsogram()).toEqual(false); |
| 62 | + }); |
| 63 | + |
| 64 | +}); |
0 commit comments