Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test with double array fails #155

Closed
magro opened this issue Nov 25, 2013 · 1 comment
Closed

Test with double array fails #155

magro opened this issue Nov 25, 2013 · 1 comment

Comments

@magro
Copy link
Collaborator

magro commented Nov 25, 2013

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.

@romix romix closed this as completed in adf0576 Nov 25, 2013
@magro
Copy link
Collaborator Author

magro commented Nov 25, 2013

So fast, awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant