Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output is broken with AVA-style assertion descriptions #11

Open
dbkaplun opened this issue Feb 14, 2016 · 0 comments
Open

Output is broken with AVA-style assertion descriptions #11

dbkaplun opened this issue Feb 14, 2016 · 0 comments

Comments

@dbkaplun
Copy link

 12:40:42  dan@elise:~/stuff/vernamtools   master ✘ ✹ ✭ 
$ npm test

> vernamtools@1.0.0 test /Users/dan/stuff/vernamtools
> ava -t test/index.js | faucet

✓ vernam is its own inverse: vernam(vernam(input, key), key) === input
# vernam is the identity function for null keys: vernam(input, nullS...
✓ vernam is the identity function for null keys: vernam(input, nullS...lStr) =✓ vernam(nullStr, key) === repeatUntilSize(key, nullStr.length)
# vernam(input, key, len) === vernam(input, key.slice(0, len)) if ke...
✓ vernam(input, key, len) === vernam(input, key.slice(0, len)) if ke...key.len# vernam(input, key, len) === vernam(input, padEnd(key, len, nullCha...
✓ vernam(input, key, len) === vernam(input, padEnd(key, len, nullCha...har)) i✓ vernam(input, key).length === input.length
✓ group("Hello, world!", 4) === ["Hoo!","e,r","l l","lwd"]
# tests 7
✓ pass 7

 12:40:50  dan@elise:~/stuff/vernamtools   master ✘ ✹ ✭ 
$ npm test

> vernamtools@1.0.0 test /Users/dan/stuff/vernamtools
> ava -t test/index.js

TAP version 13
# vernam is its own inverse: vernam(vernam(input, key), key) === input
ok 1 - vernam is its own inverse: vernam(vernam(input, key), key) === input
# vernam is the identity function for null keys: vernam(input, nullStr) === input
ok 2 - vernam is the identity function for null keys: vernam(input, nullStr) === input
# vernam(nullStr, key) === repeatUntilSize(key, nullStr.length)
ok 3 - vernam(nullStr, key) === repeatUntilSize(key, nullStr.length)
# vernam(input, key, len) === vernam(input, key.slice(0, len)) if key.length < len
ok 4 - vernam(input, key, len) === vernam(input, key.slice(0, len)) if key.length < len
# vernam(input, key, len) === vernam(input, padEnd(key, len, nullChar)) if key.length > len
ok 5 - vernam(input, key, len) === vernam(input, padEnd(key, len, nullChar)) if key.length > len
# vernam(input, key).length === input.length
ok 6 - vernam(input, key).length === input.length
# group("Hello, world!", 4) === ["Hoo!","e,r","l l","lwd"]
ok 7 - group("Hello, world!", 4) === ["Hoo!","e,r","l l","lwd"]

1..7
# tests 7
# pass 7
# fail 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant