Sha256: 34a78de842db494b0ff8ad4574a93cbbc4bf6e74cb064ab0f6bab6d11b80833a

Contents?: true

Size: 1.04 KB

Versions: 42

Compression:

Stored size: 1.04 KB

Contents

var abbrev = require('./abbrev.js')
var assert = require("assert")
var util = require("util")

console.log("TAP Version 13")
var count = 0

function test (list, expect) {
  count++
  var actual = abbrev(list)
  assert.deepEqual(actual, expect,
    "abbrev("+util.inspect(list)+") === " + util.inspect(expect) + "\n"+
    "actual: "+util.inspect(actual))
  actual = abbrev.apply(exports, list)
  assert.deepEqual(abbrev.apply(exports, list), expect,
    "abbrev("+list.map(JSON.stringify).join(",")+") === " + util.inspect(expect) + "\n"+
    "actual: "+util.inspect(actual))
  console.log('ok - ' + list.join(' '))
}

test([ "ruby", "ruby", "rules", "rules", "rules" ],
{ rub: 'ruby'
, ruby: 'ruby'
, rul: 'rules'
, rule: 'rules'
, rules: 'rules'
})
test(["fool", "foom", "pool", "pope"],
{ fool: 'fool'
, foom: 'foom'
, poo: 'pool'
, pool: 'pool'
, pop: 'pope'
, pope: 'pope'
})
test(["a", "ab", "abc", "abcd", "abcde", "acde"],
{ a: 'a'
, ab: 'ab'
, abc: 'abc'
, abcd: 'abcd'
, abcde: 'abcde'
, ac: 'acde'
, acd: 'acde'
, acde: 'acde'
})

console.log("0..%d", count)

Version data entries

42 entries across 19 versions & 3 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js
hooch-0.4.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js
hooch-0.4.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js
hooch-0.3.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js
hooch-0.2.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js
hooch-0.2.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js
hooch-0.1.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js
hooch-0.0.8 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js
hooch-0.0.7 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js
hooch-0.0.6 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js
entangled-0.0.16 spec/dummy/public/node_modules/grunt/node_modules/nopt/node_modules/abbrev/test.js
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/abbrev/test.js
entangled-0.0.16 spec/dummy/public/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js
entangled-0.0.16 spec/dummy/public/node_modules/grunt-cli/node_modules/nopt/node_modules/abbrev/test.js
entangled-0.0.15 spec/dummy/public/node_modules/grunt-cli/node_modules/nopt/node_modules/abbrev/test.js
entangled-0.0.15 spec/dummy/public/node_modules/grunt/node_modules/nopt/node_modules/abbrev/test.js
entangled-0.0.15 spec/dummy/public/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/abbrev/test.js
entangled-0.0.14 spec/dummy/public/node_modules/grunt/node_modules/nopt/node_modules/abbrev/test.js
entangled-0.0.14 spec/dummy/public/node_modules/phantomjs/node_modules/npmconf/node_modules/nopt/node_modules/abbrev/test.js