We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: