Sha256: 730a78ca4692d22ce3f708abaca7a3a8b18ab44c2b13a4a41e14359864545078

Contents?: true

Size: 1.45 KB

Versions: 141

Compression:

Stored size: 1.45 KB

Contents

var pigLatin = require('./pig-latin');

describe('pigLatin', function () {
  it('translates a word beginning with a', function () {
    expect(pigLatin.translate('apple')).toEqual('appleay');
  });

  xit('translates a word beginning with e', function () {
    expect(pigLatin.translate('ear')).toEqual('earay');
  });

  xit('translates a word beginning with p', function () {
    expect(pigLatin.translate('pig')).toEqual('igpay');
  });

  xit('translates a word beginning with k', function () {
    expect(pigLatin.translate('koala')).toEqual('oalakay');
  });

  xit('translates a word beginning with ch', function () {
    expect(pigLatin.translate('chair')).toEqual('airchay');
  });

  xit('translates a word beginning with qu', function () {
    expect(pigLatin.translate('queen')).toEqual('eenquay');
  });

  xit('translates a word with a consonant preceding qu', function () {
    expect(pigLatin.translate('square')).toEqual('aresquay');
  });

  xit('translates a word beginning with th', function () {
    expect(pigLatin.translate('therapy')).toEqual('erapythay');
  });

  xit('translates a word beginning with thr', function () {
    expect(pigLatin.translate('thrush')).toEqual('ushthray');
  });

  xit('translates a word beginning with sch', function () {
    expect(pigLatin.translate('school')).toEqual('oolschay');
  });

  xit('translates a phrase', function () {
    expect(pigLatin.translate('quick fast run'))
      .toEqual('ickquay astfay unray');
  });
});

Version data entries

141 entries across 141 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.97 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.96 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.95 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.94 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.93 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.92 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.91 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.90 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.89 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.88 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.87 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.86 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.85 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.84 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.83 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.82 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.81 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.80 tracks/javascript/exercises/pig-latin/pig-latin.spec.js
trackler-2.2.1.79 tracks/javascript/exercises/pig-latin/pig-latin.spec.js