Skip to content

Output is broken with AVA-style assertion descriptions #11

@dbkaplun

Description

@dbkaplun
 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions