Sha256: db40f97eae4b95251d7ec296ebf17ae2e2dd5bc48a7b6c18e4412d4cde567ef2

Contents?: true

Size: 1.66 KB

Versions: 121

Compression:

Stored size: 1.66 KB

Contents

var Pangram = require('./pangram');

describe('Pangram()', function ()  {
  it('empty sentence', function () {
    var pangram = new Pangram('');
    expect(pangram.isPangram()).toBe(false);
  });

  xit('pangram with only lower case', function ()  {
    var pangram = new Pangram('the quick brown fox jumps over the lazy dog');
    expect(pangram.isPangram()).toBe(true);
  });

  xit("missing character 'x'", function ()  {
    var pangram = new Pangram('a quick movement of the enemy will jeopardize five gunboats');
    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);
  });

  xit('pangram with non-ascii characters', function ()  {
    var pangram = new Pangram('Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich.');
    expect(pangram.isPangram()).toBe(true);
  });
});

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.118 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.117 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.116 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.115 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.114 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.113 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.111 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.110 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.109 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.108 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.107 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.106 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.105 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.104 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.103 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.102 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.101 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.100 tracks/javascript/exercises/pangram/pangram.spec.js
trackler-2.2.1.99 tracks/javascript/exercises/pangram/pangram.spec.js