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

@@ -29,9 +29,9 @@ class `Blake-384 Test` {
0xddU, 0x2bU, 0x47U, 0x88U,
0xb1U, 0xc8U, 0x08U, 0x69U,
0x84U, 0xafU, 0x87U, 0x06U,
)
).asByteArray()
val actual = function.hash(
UByteArray(0)
ByteArray(0),
)
assertContentEquals(expected, actual)
}
@@ -50,10 +50,10 @@ class `Blake-384 Test` {
0x29U, 0x39U, 0x1eU, 0x85U,
0x45U, 0xb5U, 0x27U, 0x2dU,
0x13U, 0xa7U, 0xc2U, 0x87U,
0x9dU, 0xa3U, 0xd8U, 0x07U
)
0x9dU, 0xa3U, 0xd8U, 0x07U,
).asByteArray()
val actual = function.hash(
UByteArray(1)
ByteArray(1),
)
assertContentEquals(expected, actual)
}
@@ -72,10 +72,10 @@ class `Blake-384 Test` {
0x69U, 0x78U, 0x0bU, 0x2dU,
0xaaU, 0x66U, 0xc4U, 0xb2U,
0x24U, 0xa2U, 0xecU, 0x2eU,
0x5dU, 0x09U, 0x17U, 0x4cU
)
0x5dU, 0x09U, 0x17U, 0x4cU,
).asByteArray()
val actual = function.hash(
UByteArray(144)
ByteArray(144),
)
assertContentEquals(expected, actual)
}