Skip to content

Commit

Permalink
✅ Update Kotlin sample of ZeroAsByteSerializer.toString() (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
LVMVRQUXL committed Aug 27, 2024
1 parent 23d7203 commit 561cf0b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 561cf0b

Please sign in to comment.