From 7c2723cb5a6bdd558745b25d240b5928cea36976 Mon Sep 17 00:00:00 2001 From: Matthew Morgan Date: Sat, 23 Apr 2016 07:10:51 -0400 Subject: [PATCH] Update tests for Pangram --- exercises/pangram/pangram.spec.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/exercises/pangram/pangram.spec.js b/exercises/pangram/pangram.spec.js index efc6e797..d7feee37 100644 --- a/exercises/pangram/pangram.spec.js +++ b/exercises/pangram/pangram.spec.js @@ -17,6 +17,26 @@ describe('Pangram()', function() { expect(pangram.isPangram()).toBe(false); }); + xit("another missing character 'x'", function() { + var pangram = new Pangram("the quick brown fish jumps over the lazy dog"); + expect(pangram.isPangram()).toBe(false); + }); + + xit("pangram with underscores", function() { + var pangram = new Pangram("the_quick_brown_fox_jumps_over_the_lazy_dog"); + expect(pangram.isPangram()).toBe(true); + }); + + xit("pangram with numbers", function() { + var pangram = new Pangram("the 1 quick brown fox jumps over the 2 lazy dogs"); + expect(pangram.isPangram()).toBe(true); + }); + + xit('missing letters replaced by numbers', function() { + var pangram = new Pangram("7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog"); + expect(pangram.isPangram()).toBe(false); + }); + xit('pangram with mixed case and punctuation', function() { var pangram = new Pangram("\"Five quacking Zephyrs jolt my wax bed.\""); expect(pangram.isPangram()).toBe(true);