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

@@ -25,9 +25,9 @@ class `Blake-256 Test` {
0x2fU, 0x67U, 0xc6U, 0x15U,
0x10U, 0xbfU, 0xc4U, 0x75U,
0x13U, 0x84U, 0xeaU, 0x7aU,
)
).asByteArray()
val actual = function.hash(
UByteArray(0)
ByteArray(0),
)
assertContentEquals(expected, actual)
}
@@ -43,9 +43,9 @@ class `Blake-256 Test` {
0x92U, 0x9aU, 0x74U, 0xdaU,
0x23U, 0x10U, 0x9eU, 0x8fU,
0x11U, 0x13U, 0x9cU, 0x87U,
)
).asByteArray()
val actual = function.hash(
UByteArray(1)
ByteArray(1),
)
assertContentEquals(expected, actual)
}
@@ -61,9 +61,9 @@ class `Blake-256 Test` {
0x13U, 0x5dU, 0xecU, 0x31U,
0xe2U, 0x1bU, 0xd9U, 0xabU,
0xdcU, 0xc2U, 0x2dU, 0x41U,
)
).asByteArray()
val actual = function.hash(
UByteArray(72)
ByteArray(72),
)
assertContentEquals(expected, actual)
}