unsigned integer constraint (uint)
This commit is contained in:
@@ -907,6 +907,12 @@
|
||||
- filtering, skipping, fixtures, snapshots, parallelism, isolation, allocators, and more assertion
|
||||
families remain deferred
|
||||
|
||||
42. unsigned integer constraint (implemented)
|
||||
- `uint` is the unsigned subset constraint while `int` remains the whole integer family
|
||||
- literal-only values choose the smallest fitting `u8`, `u16`, `u32`, or `u64`
|
||||
- native unsigned scalars and target-classified unsigned C scalars satisfy the constraint
|
||||
- `isize` and `usize` remain concrete pointer-sized types
|
||||
|
||||
## A word on unchecked casts
|
||||
|
||||
For casts that bypass safety checks, Honey provides builtin functions:
|
||||
|
||||
Reference in New Issue
Block a user