Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
implements nqp::sha1
Implements nqp::sha1 using the UTF-8 encoding of the input string. Although a test is included (of an ASCII-compatible string), when a non-ASCII input string is provided the test will fail. For example, if the input string is "Iñtërnâtiônàlizætiøn" the SHA-1 hash of the UTF-8 encoding should be 4B9C5D2FA4C83F7561787EB4E5F7F06A2CD47425 (according to both the JVM and nqp::sha1 on Parrot), but the test fails. I'm not sure if this is an issue with using non-ASCII characters in the test file or something deeper.
- Loading branch information
1 parent
11a30be
commit 93418f5
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters