From 561cf0b9af32647163e1a7f37643e24d318d1b69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lamarque?= Date: Tue, 27 Aug 2024 13:20:46 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Update=20Kotlin=20sample=20of=20`Ze?= =?UTF-8?q?roAsByteSerializer.toString()`=20(#690)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../serialization/ZeroAsByteSerializerCommonSample.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/subprojects/kotlinx-serialization/src/commonSample/kotlin/org/kotools/types/kotlinx/serialization/ZeroAsByteSerializerCommonSample.kt b/subprojects/kotlinx-serialization/src/commonSample/kotlin/org/kotools/types/kotlinx/serialization/ZeroAsByteSerializerCommonSample.kt index 2172035df..3a24bca65 100644 --- a/subprojects/kotlinx-serialization/src/commonSample/kotlin/org/kotools/types/kotlinx/serialization/ZeroAsByteSerializerCommonSample.kt +++ b/subprojects/kotlinx-serialization/src/commonSample/kotlin/org/kotools/types/kotlinx/serialization/ZeroAsByteSerializerCommonSample.kt @@ -73,10 +73,9 @@ internal class ZeroAsByteSerializerCommonSample { @Test fun toStringOverride() { - val serializerAsString: String = ZeroAsByteSerializer() - .toString() - val expected: String = - checkNotNull(ZeroAsByteSerializer::class.simpleName) + val serializer = ZeroAsByteSerializer() + val serializerAsString: String = serializer.toString() + val expected: String = checkNotNull(serializer::class.simpleName) assertEquals(expected, serializerAsString) } }