evanisnor / durationjs

A JavaScript library for parsing and manipulating ISO 8601 formatted duration strings.
MIT License
13 stars 6 forks source link

Tests fail #5

Closed desimone closed 11 years ago

desimone commented 11 years ago

http://cl.ly/image/2V0P1S2m0h2B

➜  durationjs git:(master) ✗ npm test

> durationjs@0.0.1 test /Users/bdd/Google Drive/Dropbox/projects/durationjs
> testacular start duration.testacular.conf.js

INFO [testacular]: Testacular server started at http://localhost:9876/
INFO [Chrome 25.0 (Mac)]: Connected on socket id 4Plia7JBy2am27rrWLhl
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) LOG: 'duration.js: Error: UNEXPECTED_FORMAT_ERROR'
Chrome 25.0 (Mac) Duration Test Suite Duration Formatted Getter Tests should return a valid ISO 8601 duration string FAILED
    Expected '' to be 'P1Y1M1DT1H1M1S'.
    Error: Expected '' to be 'P1Y1M1DT1H1M1S'.
        at null.<anonymous> (/Users/bdd/Google Drive/Dropbox/projects/durationjs/test/duration.test.js:541:62)
    Expected '' to be 'P56W'.
    Error: Expected '' to be 'P56W'.
        at null.<anonymous> (/Users/bdd/Google Drive/Dropbox/projects/durationjs/test/duration.test.js:542:67)
    Expected '' to be 'P0001-01-01T01:01:01'.
    Error: Expected '' to be 'P0001-01-01T01:01:01'.
        at null.<anonymous> (/Users/bdd/Google Drive/Dropbox/projects/durationjs/test/duration.test.js:543:69)
    Expected '' to be 'P00010101T010101'.
    Error: Expected '' to be 'P00010101T010101'.
        at null.<anonymous> (/Users/bdd/Google Drive/Dropbox/projects/durationjs/test/duration.test.js:544:72)
Chrome 25.0 (Mac): Executed 25 of 25 (1 FAILED) (0.428 secs / 0.382 secs)
WARN [Chrome 25.0 (Mac)]: Disconnected
evanisnor commented 11 years ago

Yeah I added tests without having coded the implementation. Feel free to write them.

evanisnor commented 11 years ago

Why are you working out of master? that's weird.

evanisnor commented 11 years ago

Should be fixed now! dc9002f39f40af2e64ed28b8bb4cbfa465a35815