Skip to content

Conversation

@oskin1
Copy link
Contributor

@oskin1 oskin1 commented Aug 29, 2024

No description provided.

Copy link
Contributor

@rooooooooob rooooooooob left a comment

Choose a reason for hiding this comment

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

Thanks for the work! I just have the one issue with the test case so we know it's working.

});
assert_eq!(x.as_u128(), Some(int as u128))
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a test case where the bits wouldn't all be uniform (i.e. not all 1's)? Maybe 462_164_030_739_157_517 or something similar could do (anything where the bytes aren't interchangeable) could work. u64::MAX here would have all the byte chunks be 1's / FFFF so wouldn't this test case have passed before the change 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.

Done

Copy link
Contributor

@rooooooooob rooooooooob left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution!

@rooooooooob rooooooooob merged commit 1dc9b61 into dcSpark:develop Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants