Skip to content

Commit 8010e22

Browse files
committed
Fix broken assumption about digestValue
1 parent 5ea2009 commit 8010e22

File tree

1 file changed

+1
-4
lines changed
  • runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/hashing

1 file changed

+1
-4
lines changed

runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/hashing/Crc32cTest.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ class Crc32cTest {
3333
val input = "foobar"
3434

3535
crc.update(input.encodeToByteArray(), 0, input.length / 2)
36-
assertEquals(3485773341U, crc.digestValue()) // checksum of "foo"
37-
3836
crc.update(input.encodeToByteArray(), (input.length - input.length / 2), input.length / 2)
3937
assertEquals(224353407U, crc.digestValue()) // checksum of "foobar"
4038
}
@@ -45,8 +43,7 @@ class Crc32cTest {
4543
val input = "foobar"
4644

4745
crc.update(input.encodeToByteArray(), 0, input.length)
48-
assertEquals(224353407U, crc.digestValue()) // checksum of "foobar"
49-
assertEquals("DV9cfw==", crc.digest().encodeBase64String())
46+
assertEquals("DV9cfw==", crc.digest().encodeBase64String()) // checksum of "foobar"
5047
}
5148

5249
@Test

0 commit comments

Comments
 (0)