Skip to content

Instantly share code, notes, and snippets.

@ichernev
Created August 28, 2012 08:17
Show Gist options
  • Save ichernev/3496104 to your computer and use it in GitHub Desktop.
Save ichernev/3496104 to your computer and use it in GitHub Desktop.
moment create test failure
✖ create - six digit years
Assertion Message: parse BC 270,001
AssertionError: -270001 == -270000
at Object.assertWrapper [as equal] (/home/iskren/src/moment/node_modules/nodeunit/lib/types.js:83:39)
at Object.exports.create.six digit years (/home/iskren/src/moment/test/moment/create.js:320:14)
at Object.wrapTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:235:16)
at Object.wrapTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:235:16)
at wrapTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:235:16)
at Object.exports.runTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:69:9)
at exports.runSuite (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:117:25)
at _concat (/home/iskren/src/moment/node_modules/nodeunit/deps/async.js:508:13)
at async.forEachSeries.iterate (/home/iskren/src/moment/node_modules/nodeunit/deps/async.js:118:13)
at async.forEachSeries.iterate (/home/iskren/src/moment/node_modules/nodeunit/deps/async.js:129:25)
Assertion Message: parse AD 270,000
AssertionError: 269999 == 270000
at Object.assertWrapper [as equal] (/home/iskren/src/moment/node_modules/nodeunit/lib/types.js:83:39)
at Object.exports.create.six digit years (/home/iskren/src/moment/test/moment/create.js:321:14)
at Object.wrapTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:235:16)
at Object.wrapTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:235:16)
at wrapTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:235:16)
at Object.exports.runTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:69:9)
at exports.runSuite (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:117:25)
at _concat (/home/iskren/src/moment/node_modules/nodeunit/deps/async.js:508:13)
at async.forEachSeries.iterate (/home/iskren/src/moment/node_modules/nodeunit/deps/async.js:118:13)
at async.forEachSeries.iterate (/home/iskren/src/moment/node_modules/nodeunit/deps/async.js:129:25)
Assertion Message: parse AD +270,000
AssertionError: 269999 == 270000
at Object.assertWrapper [as equal] (/home/iskren/src/moment/node_modules/nodeunit/lib/types.js:83:39)
at Object.exports.create.six digit years (/home/iskren/src/moment/test/moment/create.js:322:14)
at Object.wrapTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:235:16)
at Object.wrapTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:235:16)
at wrapTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:235:16)
at Object.exports.runTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:69:9)
at exports.runSuite (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:117:25)
at _concat (/home/iskren/src/moment/node_modules/nodeunit/deps/async.js:508:13)
at async.forEachSeries.iterate (/home/iskren/src/moment/node_modules/nodeunit/deps/async.js:118:13)
at async.forEachSeries.iterate (/home/iskren/src/moment/node_modules/nodeunit/deps/async.js:129:25)
✖ create - negative four digit years
Assertion Message: parse BC 1,001
AssertionError: -1001 == -1000
at Object.assertWrapper [as equal] (/home/iskren/src/moment/node_modules/nodeunit/lib/types.js:83:39)
at Object.exports.create.negative four digit years (/home/iskren/src/moment/test/moment/create.js:328:14)
at Object.wrapTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:235:16)
at Object.wrapTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:235:16)
at wrapTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:235:16)
at Object.exports.runTest (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:69:9)
at exports.runSuite (/home/iskren/src/moment/node_modules/nodeunit/lib/core.js:117:25)
at _concat (/home/iskren/src/moment/node_modules/nodeunit/deps/async.js:508:13)
at async.forEachSeries.iterate (/home/iskren/src/moment/node_modules/nodeunit/deps/async.js:118:13)
at async.forEachSeries.iterate (/home/iskren/src/moment/node_modules/nodeunit/deps/async.js:129:25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment