Skip to content

Commit

Permalink
add tests for SHA256.hash256
Browse files Browse the repository at this point in the history
  • Loading branch information
fluency03 committed May 12, 2018
1 parent 3100d56 commit 8d7620e
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ class SHA256Test extends FlatSpec with Matchers {
SHA256.hash("9C3AC7CD5D2673694C492CC508D788CBCACCDD357956EBCF10BD6C5BDF67AA5C".hex2Bytes) shouldEqual
"27D7CF19837C3D3F713BDB483CB98A00D2917D5039D71348E90ADC68D2399F6D".toLowerCase

SHA256.hash256("00010966776006953D5567439E5E39F86A0D273BEE".hex2Bytes) shouldEqual
"D61967F63C7DD183914A4AE452C9F6AD5D462CE3D277798075B107615C1A8A30".toLowerCase

SHA256.hash256Digest("00010966776006953D5567439E5E39F86A0D273BEE".hex2Bytes) shouldEqual
"D61967F63C7DD183914A4AE452C9F6AD5D462CE3D277798075B107615C1A8A30".hex2Bytes

SHA256.hash256("0045590A0195EB451711B9D076E4C0CD04675AAD55".hex2Bytes) shouldEqual
"E816C7F2DD7F1E5521B1C3066B15D7331039C2447FA4F3AA5F35E28B2B949CE1".toLowerCase

SHA256.hash256Digest("0045590A0195EB451711B9D076E4C0CD04675AAD55".hex2Bytes) shouldEqual
"E816C7F2DD7F1E5521B1C3066B15D7331039C2447FA4F3AA5F35E28B2B949CE1".hex2Bytes

}

Expand Down

0 comments on commit 8d7620e

Please sign in to comment.