Open sageserpent-open opened 1 month ago
AbstractKryoTest.testCopyingOf
, and use a more revealing name for the corresponding result in AbstractKryoTest.testSerialization.of
.diff --git a/core/src/test/scala/io/altoo/serialization/kryo/scala/testkit/AbstractKryoTest.scala b/core/src/test/scala/io/altoo/serialization/kryo/scala/testkit/AbstractKryoTest.scala --- a/core/src/test/scala/io/altoo/serialization/kryo/scala/testkit/AbstractKryoTest.scala (revision 09e14850342128a4544010c786d9140ef75d716c) +++ b/core/src/test/scala/io/altoo/serialization/kryo/scala/testkit/AbstractKryoTest.scala (date 1728636466202) @@ -46,12 +46,12 @@ output.close()
val input = new Input(new ByteArrayInputStream(serialized), 4096)
val obj1 = kryo.readClassAndObject(input)
val roundTripped = kryo.readClassAndObject(input) input.close()
assert(obj == obj1)
assert(obj == roundTripped)
obj1.asInstanceOf[T]
roundTripped.asInstanceOf[T] }
protected final def serialize[T](obj: T): Array[Byte] = { @@ -76,6 +76,6 @@
assert(copy == obj)
obj
copy } }
Move conveniently: issue-20.patch
This follows on from #16 - I noticed a minor omission in one of the tests.
For the sake of expediency, I've enclosed a patch with this ticket. Hope that suffices, the changes are minor.