From ae4e3c60aeffe6c8051a2eaf29745be17b6e034b Mon Sep 17 00:00:00 2001 From: rnentjes Date: Sat, 7 Dec 2024 16:01:36 +0100 Subject: [PATCH] Fix unit test assertions in TypedByteArrayWithByteArrayTest Correct the expected values in assertions to match the updated data structure. This ensures the test accurately reflects the intended behavior of the `Data` object, maintaining consistency with any recent changes in the data format or handling. --- .../kotlin/nl/astraeus/tba/TypedByteArrayWithByteArrayTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commonTest/kotlin/nl/astraeus/tba/TypedByteArrayWithByteArrayTest.kt b/src/commonTest/kotlin/nl/astraeus/tba/TypedByteArrayWithByteArrayTest.kt index 6be8abe..f833573 100644 --- a/src/commonTest/kotlin/nl/astraeus/tba/TypedByteArrayWithByteArrayTest.kt +++ b/src/commonTest/kotlin/nl/astraeus/tba/TypedByteArrayWithByteArrayTest.kt @@ -77,10 +77,10 @@ class TypedByteArrayWithByteArrayTest { } val data = Data("A Name", SlicedByteArray.wrap(binaryData)) - assertEquals(1, data.data[17]) + assertEquals(5, data.data[17]) data.binaryData[0] = 100 - assertEquals(100, data.data[16]) + assertEquals(100, data.data[12]) } }