mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
node conversion finished, narwhal removed.
This commit is contained in:
6
test/fixtures/execution/test_while.coffee
vendored
6
test/fixtures/execution/test_while.coffee
vendored
@@ -1,17 +1,17 @@
|
||||
i: 100
|
||||
while i -= 1
|
||||
|
||||
print i is 0
|
||||
puts i is 0
|
||||
|
||||
|
||||
i: 5
|
||||
list: while i -= 1
|
||||
i * 2
|
||||
|
||||
print list.join(' ') is "8 6 4 2"
|
||||
puts list.join(' ') is "8 6 4 2"
|
||||
|
||||
|
||||
i: 5
|
||||
list: (i * 3 while i -= 1)
|
||||
|
||||
print list.join(' ') is "12 9 6 3"
|
||||
puts list.join(' ') is "12 9 6 3"
|
||||
Reference in New Issue
Block a user