mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 06:08:41 +01:00
@ -1,25 +0,0 @@
|
||||
// Ordered range.
|
||||
System.print((2..5).from) // expect: 2
|
||||
System.print((3..3).from) // expect: 3
|
||||
System.print((0..3).from) // expect: 0
|
||||
System.print((-5..3).from) // expect: -5
|
||||
System.print((-5..-2).from) // expect: -5
|
||||
|
||||
// Backwards range.
|
||||
System.print((5..2).from) // expect: 5
|
||||
System.print((3..0).from) // expect: 3
|
||||
System.print((3..-5).from) // expect: 3
|
||||
System.print((-2..-5).from) // expect: -2
|
||||
|
||||
// Exclusive ordered range.
|
||||
System.print((2...5).from) // expect: 2
|
||||
System.print((3...3).from) // expect: 3
|
||||
System.print((0...3).from) // expect: 0
|
||||
System.print((-5...3).from) // expect: -5
|
||||
System.print((-5...-2).from) // expect: -5
|
||||
|
||||
// Exclusive backwards range.
|
||||
System.print((5...2).from) // expect: 5
|
||||
System.print((3...0).from) // expect: 3
|
||||
System.print((3...-5).from) // expect: 3
|
||||
System.print((-2...-5).from) // expect: -2
|
||||
Reference in New Issue
Block a user