You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While creating a test for serialization format compatibility I discovered issues with double arrays. The issue in my test is not very helpful, but I see that I cannot write a test like this (e.g. added to ArraySerializerTest):
public void testDoubleArrays () {
kryo.register(double[].class);
roundTrip(6, 18, new double[] {1, 2});
}
This fails with
AssertionFailedError: Incorrect number of bytes read. expected:<18> but was:<10>
But when I change it to
roundTrip(6, 10, new double[] {1, 2});
the test fails with
AssertionFailedError: Incorrect number of bytes written. expected:<10> but was:<18>
So there's a mismatch between read and write.
The text was updated successfully, but these errors were encountered:
While creating a test for serialization format compatibility I discovered issues with double arrays. The issue in my test is not very helpful, but I see that I cannot write a test like this (e.g. added to
ArraySerializerTest
):This fails with
But when I change it to
the test fails with
So there's a mismatch between read and write.
The text was updated successfully, but these errors were encountered: