Skip to content

Commit

Permalink
✅ Update tests of ZeroAsByteSerializer.equals(Any?) (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
LVMVRQUXL committed Aug 27, 2024
1 parent 99f5d82 commit e2653eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ internal class ZeroAsByteSerializerCommonSample {
val serializer = ZeroAsByteSerializer()
val other = ZeroAsByteSerializer()
val equality: Boolean = serializer == other
assertTrue(equality)
val message = "Instances of '$serializer' should be equal."
assertTrue(equality, message)
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class ZeroAsByteSerializerTest {
val serializer = ZeroAsByteSerializer()
val other: Any = "Oops"
val actual: Boolean = serializer == other
assertFalse(actual)
val message = "Instance of '$serializer' shouldn't equal another type."
assertFalse(actual, message)
}

// ----------------------- Serialization operations ------------------------
Expand Down

0 comments on commit e2653eb

Please sign in to comment.