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
Convert unit_SUITE to property-based tests using PropEr
Replace the example-based assertions for `range_spec_to_location_number/2`
with three PropEr properties, one per clause:
- `prop_range_spec_to_location_number_suffix`: generates `FileSize >= 1`
and `N` in `1..FileSize`, verifying `{FileSize - N, N}`
- `prop_range_spec_to_location_number_prefix`: generates arbitrary positive
pairs, verifying `{0, min(N, FileSize)}`
- `prop_range_spec_to_location_number_byte_range`: generates `Start` in
`0..FileSize-1` and `EndByte` in `Start..FileSize+100` or `undefined`,
covering both explicit and open-ended ranges including end bytes beyond
the file size as produced by real call sites
`proper` is added to `TEST_DEPS`.
0 commit comments