Skip to content

Commit 6463d03

Browse files
committed
test(model): Make more clear that unknown hashes maintain the value
Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
1 parent d1b432f commit 6463d03

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

model/src/test/kotlin/HashTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class HashTest : WordSpec({
3232
}
3333

3434
"create an UNKNOWN hash from the 'UNKOWN' value" {
35-
Hash.create("UNKNOWN").algorithm shouldBe HashAlgorithm.UNKNOWN
35+
Hash.create("UNKNOWN") shouldBe Hash("UNKNOWN", HashAlgorithm.UNKNOWN)
3636
}
3737

3838
"create an UNKNOWN hash from a value that matches no other hash" {
39-
Hash.create("0123456789").algorithm shouldBe HashAlgorithm.UNKNOWN
39+
Hash.create("0123456789") shouldBe Hash("0123456789", HashAlgorithm.UNKNOWN)
4040
}
4141

4242
"create a SHA1 hash from a SHA-1 value" {

0 commit comments

Comments
 (0)