improve ci
All checks were successful
/ test (push) Successful in 3m25s
/ publish (push) Has been skipped

This commit is contained in:
2026-01-13 15:50:29 +01:00
parent 1195ad5acc
commit 9391009403
6 changed files with 146 additions and 90 deletions

View File

@@ -7,7 +7,7 @@ import kotlin.test.assertEquals
class `Conversion Test` {
@Test
fun `ByteArray - toInt()`() {
fun `ByteArray toInt`() {
val expected = 0x12345678
val actual = arrayOf(
byteArrayOf(0x12, 0x34, 0x56, 0x78).toInt(),
@@ -18,7 +18,7 @@ class `Conversion Test` {
}
@Test
fun `UByteArray - toInt()`() {
fun `UByteArray toInt`() {
val expected = 0x12345678
val actual = arrayOf(
ubyteArrayOf(0x12U, 0x34U, 0x56U, 0x78U).toInt(),
@@ -29,7 +29,7 @@ class `Conversion Test` {
}
@Test
fun `ByteArray - toUInt()`() {
fun `ByteArray toUInt`() {
val expected = 0x12345678U
val actual = arrayOf(
byteArrayOf(0x12, 0x34, 0x56, 0x78).toUInt(),
@@ -40,7 +40,7 @@ class `Conversion Test` {
}
@Test
fun `UByteArray - toUInt()`() {
fun `UByteArray toUInt`() {
val expected = 0x12345678U
val actual = arrayOf(
ubyteArrayOf(0x12U, 0x34U, 0x56U, 0x78U).toUInt(),
@@ -51,7 +51,7 @@ class `Conversion Test` {
}
@Test
fun `ByteArray - toIntArray()`() {
fun `ByteArray toIntArray`() {
val expected = intArrayOf(0x12345678, 0x12345678)
val actual = arrayOf(
byteArrayOf(
@@ -68,7 +68,7 @@ class `Conversion Test` {
}
@Test
fun `UByteArray - toIntArray()`() {
fun `UByteArray toIntArray`() {
val expected = intArrayOf(0x12345678, 0x12345678)
val actual = arrayOf(
ubyteArrayOf(
@@ -85,7 +85,7 @@ class `Conversion Test` {
}
@Test
fun `ByteArray - toUIntArray()`() {
fun `ByteArray toUIntArray`() {
val expected = uintArrayOf(0x12345678U, 0x12345678U)
val actual = arrayOf(
byteArrayOf(
@@ -102,7 +102,7 @@ class `Conversion Test` {
}
@Test
fun `UByteArray - toUIntArray()`() {
fun `UByteArray toUIntArray`() {
val expected = uintArrayOf(0x12345678U, 0x12345678U)
val actual = arrayOf(
ubyteArrayOf(
@@ -119,7 +119,7 @@ class `Conversion Test` {
}
@Test
fun `Int - toByteArray()`() {
fun `Int toByteArray`() {
val expected = arrayOf(
byteArrayOf(0x12, 0x34, 0x56, 0x78),
byteArrayOf(0x78, 0x56, 0x34, 0x12),
@@ -134,7 +134,7 @@ class `Conversion Test` {
}
@Test
fun `UInt - toByteArray()`() {
fun `UInt toByteArray`() {
val expected = arrayOf(
byteArrayOf(0x12, 0x34, 0x56, 0x78),
byteArrayOf(0x78, 0x56, 0x34, 0x12),
@@ -149,7 +149,7 @@ class `Conversion Test` {
}
@Test
fun `Int - toUByteArray()`() {
fun `Int toUByteArray`() {
val expected = arrayOf(
ubyteArrayOf(0x12U, 0x34U, 0x56U, 0x78U),
ubyteArrayOf(0x78U, 0x56U, 0x34U, 0x12U),
@@ -164,7 +164,7 @@ class `Conversion Test` {
}
@Test
fun `UInt - toUByteArray()`() {
fun `UInt toUByteArray`() {
val expected = arrayOf(
ubyteArrayOf(0x12U, 0x34U, 0x56U, 0x78U),
ubyteArrayOf(0x78U, 0x56U, 0x34U, 0x12U),
@@ -179,7 +179,7 @@ class `Conversion Test` {
}
@Test
fun `IntArray - toByteArray()`() {
fun `IntArray toByteArray`() {
val expected = arrayOf(
byteArrayOf(
0x12, 0x34, 0x56, 0x78,
@@ -206,7 +206,7 @@ class `Conversion Test` {
}
@Test
fun `UIntArray - toByteArray()`() {
fun `UIntArray toByteArray`() {
val expected = arrayOf(
byteArrayOf(
0x12, 0x34, 0x56, 0x78,
@@ -233,7 +233,7 @@ class `Conversion Test` {
}
@Test
fun `IntArray - toUByteArray()`() {
fun `IntArray toUByteArray`() {
val expected = arrayOf(
ubyteArrayOf(
0x12U, 0x34U, 0x56U, 0x78U,
@@ -260,7 +260,7 @@ class `Conversion Test` {
}
@Test
fun `UIntArray - toUByteArray()`() {
fun `UIntArray toUByteArray`() {
val expected = arrayOf(
ubyteArrayOf(
0x12U, 0x34U, 0x56U, 0x78U,
@@ -287,7 +287,7 @@ class `Conversion Test` {
}
@Test
fun `ByteArray - toLong()`() {
fun `ByteArray toLong`() {
val expected = 0x1234567812345678L
val actual = arrayOf(
byteArrayOf(0x12, 0x34, 0x56, 0x78, 0x12, 0x34, 0x56, 0x78).toLong(),
@@ -298,7 +298,7 @@ class `Conversion Test` {
}
@Test
fun `UByteArray - toULong()`() {
fun `UByteArray toULong`() {
val expected = 0x1234567812345678UL
val actual = arrayOf(
ubyteArrayOf(0x12U, 0x34U, 0x56U, 0x78U, 0x12U, 0x34U, 0x56U, 0x78U).toULong(),
@@ -309,7 +309,7 @@ class `Conversion Test` {
}
@Test
fun `UByteArray - toLong()`() {
fun `UByteArray toLong`() {
val expected = 0x1234567812345678L
val actual = arrayOf(
ubyteArrayOf(0x12U, 0x34U, 0x56U, 0x78U, 0x12U, 0x34U, 0x56U, 0x78U).toLong(),
@@ -320,7 +320,7 @@ class `Conversion Test` {
}
@Test
fun `ByteArray - toULong()`() {
fun `ByteArray toULong`() {
val expected = 0x1234567812345678UL
val actual = arrayOf(
byteArrayOf(0x12, 0x34, 0x56, 0x78, 0x12, 0x34, 0x56, 0x78).toULong(),
@@ -331,7 +331,7 @@ class `Conversion Test` {
}
@Test
fun `ByteArray - toLongArray()`() {
fun `ByteArray toLongArray`() {
val expected = longArrayOf(0x1234567812345678L, 0x1234567812345678L)
val actual = arrayOf(
byteArrayOf(
@@ -348,7 +348,7 @@ class `Conversion Test` {
}
@Test
fun `UByteArray - toLongArray()`() {
fun `UByteArray toLongArray`() {
val expected = longArrayOf(0x1234567812345678L, 0x1234567812345678L)
val actual = arrayOf(
ubyteArrayOf(
@@ -365,7 +365,7 @@ class `Conversion Test` {
}
@Test
fun `ByteArray - toULongArray()`() {
fun `ByteArray toULongArray`() {
val expected = ulongArrayOf(0x1234567812345678UL, 0x1234567812345678UL)
val actual = arrayOf(
byteArrayOf(
@@ -382,7 +382,7 @@ class `Conversion Test` {
}
@Test
fun `UByteArray - toULongArray()`() {
fun `UByteArray toULongArray`() {
val expected = ulongArrayOf(0x1234567812345678UL, 0x1234567812345678UL)
val actual = arrayOf(
ubyteArrayOf(
@@ -399,7 +399,7 @@ class `Conversion Test` {
}
@Test
fun `Long - toByteArray()`() {
fun `Long toByteArray`() {
val expected = arrayOf(
byteArrayOf(0x12, 0x34, 0x56, 0x78, 0x12, 0x34, 0x56, 0x78),
byteArrayOf(0x78, 0x56, 0x34, 0x12, 0x78, 0x56, 0x34, 0x12),
@@ -414,7 +414,7 @@ class `Conversion Test` {
}
@Test
fun `ULong - toByteArray()`() {
fun `ULong toByteArray`() {
val expected = arrayOf(
byteArrayOf(0x12, 0x34, 0x56, 0x78, 0x12, 0x34, 0x56, 0x78),
byteArrayOf(0x78, 0x56, 0x34, 0x12, 0x78, 0x56, 0x34, 0x12),
@@ -429,7 +429,7 @@ class `Conversion Test` {
}
@Test
fun `Long - toUByteArray()`() {
fun `Long toUByteArray`() {
val expected = arrayOf(
ubyteArrayOf(0x12U, 0x34U, 0x56U, 0x78U, 0x12U, 0x34U, 0x56U, 0x78U),
ubyteArrayOf(0x78U, 0x56U, 0x34U, 0x12U, 0x78U, 0x56U, 0x34U, 0x12U),
@@ -444,7 +444,7 @@ class `Conversion Test` {
}
@Test
fun `ULong - toUByteArray()`() {
fun `ULong toUByteArray`() {
val expected = arrayOf(
ubyteArrayOf(0x12U, 0x34U, 0x56U, 0x78U, 0x12U, 0x34U, 0x56U, 0x78U),
ubyteArrayOf(0x78U, 0x56U, 0x34U, 0x12U, 0x78U, 0x56U, 0x34U, 0x12U),
@@ -459,7 +459,7 @@ class `Conversion Test` {
}
@Test
fun `LongArray - toByteArray()`() {
fun `LongArray toByteArray`() {
val expected = arrayOf(
byteArrayOf(
0x12, 0x34, 0x56, 0x78, 0x12, 0x34, 0x56, 0x78,
@@ -486,7 +486,7 @@ class `Conversion Test` {
}
@Test
fun `ULongArray - toByteArray()`() {
fun `ULongArray toByteArray`() {
val expected = arrayOf(
byteArrayOf(
0x12, 0x34, 0x56, 0x78, 0x12, 0x34, 0x56, 0x78,
@@ -513,7 +513,7 @@ class `Conversion Test` {
}
@Test
fun `LongArray - toUByteArray()`() {
fun `LongArray toUByteArray`() {
val expected = arrayOf(
ubyteArrayOf(
0x12U, 0x34U, 0x56U, 0x78U, 0x12U, 0x34U, 0x56U, 0x78U,
@@ -540,7 +540,7 @@ class `Conversion Test` {
}
@Test
fun `ULongArray - toUByteArray()`() {
fun `ULongArray toUByteArray`() {
val expected = arrayOf(
ubyteArrayOf(
0x12U, 0x34U, 0x56U, 0x78U, 0x12U, 0x34U, 0x56U, 0x78U,