Fix #2. Finish implementing Range.
Covers error and edge cases and fully tested now.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// Starts at "from" and adds 1.0 each iteration.
|
||||
|
||||
for (n in 1.3..4.5) IO.print(n)
|
||||
// expect: 1.3
|
||||
// expect: 2.3
|
||||
// expect: 3.3
|
||||
// expect: 4.3
|
||||
|
||||
for (n in 1.3...4.5) IO.print(n)
|
||||
// expect: 1.3
|
||||
// expect: 2.3
|
||||
// expect: 3.3
|
||||
// expect: 4.3
|
||||
|
||||
for (n in 1.3...4.3) IO.print(n)
|
||||
// expect: 1.3
|
||||
// expect: 2.3
|
||||
// expect: 3.3
|
||||
Reference in New Issue
Block a user