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
- Fix quickcheck test setup for owned and borrowed bytes tests. An
upstream mruby bug (mruby/mruby#5269) prevents the length of invalid
UTF-8 strings from being correctly calculated. The quickcheck harness
generates a wider range of inputs which requires converting the tests
to use `bytes`, `byteslice`, and `bytesize`.
- Add an additional `convert_with_trailing_nul` test to the `bytes`
- Fix quickcheck test setup for float tests. The quickcheck harness
generates a wider range of inputs which revealed issues with the test
when comparing NaN, infinities, and, some pairs which caused a
- Fix a test in `spinoso-securerandom` to no longer use the `chars()`
iterator because `alphanumeric` returns a `Vec<u8>` now.
This commit also renames the cargo features in `spinoso-random` from
`rand_core` to `rand-traits` and from `rand` to `random-rand`. These
changes more closely align `spinoso-random` with its related `rand_mt`
crate. These changes remove the package name overrides for `rand` and
`rand_core` in `Cargo.toml`. Doc comments and doc tests have been
updated for these changes.
The length of broken UTF-8 strings is undefined, I think. You may get whatever length.
CRuby does validate if the string is UTF-8 compliant. mruby just assumes the string is valid UTF-8.
I will investigate if we can validate without hindering the performance.