change tests to use ByteArray

This commit is contained in:
2026-01-15 22:12:52 +01:00
parent d40df04e2e
commit d06674c28c
20 changed files with 58 additions and 58 deletions

View File

@@ -33,9 +33,9 @@ class `Blake-512 Test` {
0xa2U, 0x5aU, 0x63U, 0x6dU,
0x80U, 0xafU, 0x3fU, 0xc7U,
0x91U, 0x3eU, 0xf5U, 0xb8U,
)
).asByteArray()
val actual = function.hash(
UByteArray(0)
ByteArray(0),
)
assertContentEquals(expected, actual)
}
@@ -59,9 +59,9 @@ class `Blake-512 Test` {
0x8bU, 0xd0U, 0x81U, 0xb6U,
0x34U, 0x05U, 0x8bU, 0xe0U,
0xecU, 0x49U, 0xbeU, 0xb3U,
)
).asByteArray()
val actual = function.hash(
UByteArray(1)
ByteArray(1),
)
assertContentEquals(expected, actual)
}
@@ -85,9 +85,9 @@ class `Blake-512 Test` {
0x6eU, 0x01U, 0xadU, 0x95U,
0x89U, 0xc2U, 0x13U, 0x04U,
0x5dU, 0x54U, 0x5dU, 0xdeU,
)
).asByteArray()
val actual = function.hash(
UByteArray(144)
ByteArray(144),
)
assertContentEquals(expected, actual)
}