Skip to content

test: Added regression test for BitWriter / BitReader bool size inconsistency #561

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

Merged
merged 5 commits into from
Mar 12, 2021

Conversation

TwoTenPvP
Copy link
Contributor

Expect this to fail until the fix for this has been backported to develop.

Perhaps target release?

Comment on lines +805 to +806
writer.WriteObjectPacked(true);
writer.WriteObjectPacked(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you might add other flavors of types here such as int[], INetworkSerializable, Vector3 etc to test a few other things too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this PR is just for the regression of the bool bug though. But I will test all the packed ones.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about bool[] then? :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, also Yamato fails because fix #541 went into release/0.1.0 and it's not on develop branch yet. so the test fails, which is very good! (except 2021.1 on Win passed? oh no...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And yes, I put int he PR description: "Expect this to fail until the fix for this has been backported to develop."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea as for yamato. The tests failed on all machine. But pack and validate succeeded. Which is a good sign!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattwalsh-unity was talking about merging release/0.1.0 back into develop some time soon. maybe we should that first and merge this in right afterwards?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

Copy link
Contributor

@0xFA11 0xFA11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good to go now!
(with an optional change suggestion)

@TwoTenPvP TwoTenPvP changed the title test: regression write object packed bool test: Added regression test for BitWriter / BitReader bool size inconsistency Mar 12, 2021
@TwoTenPvP TwoTenPvP enabled auto-merge (squash) March 12, 2021 12:13
@TwoTenPvP TwoTenPvP merged commit 23dbca1 into develop Mar 12, 2021
@TwoTenPvP TwoTenPvP deleted the test/regression-write-object-packed-bool branch March 12, 2021 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants