mirror of
https://github.com/gechandesu/ranges.git
synced 2026-03-26 03:53:20 +03:00
feat: add bounds(), make Range private back
This commit is contained in:
@@ -179,3 +179,11 @@ fn test_range_new_with_step() {
|
||||
}
|
||||
assert result == [0, 2, 4]
|
||||
}
|
||||
|
||||
fn test_range_bounds() {
|
||||
r := ranges.range(0, 10, 2)
|
||||
a, b, c := r.bounds()
|
||||
assert a == 0
|
||||
assert b == 10
|
||||
assert c == 2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user