mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
moved the coffeescript extension over from .cs to .coffee -- let's leave C# in peace. Changed array comprehensions to always return their mapped result, even when unassigned
This commit is contained in:
27
test/fixtures/execution/test_everything.coffee
vendored
Normal file
27
test/fixtures/execution/test_everything.coffee
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
func: =>
|
||||
a: 3
|
||||
b: []
|
||||
while a >= 0
|
||||
b.push('o')
|
||||
a--.
|
||||
|
||||
c: {
|
||||
"text": b
|
||||
}
|
||||
|
||||
c: 'error' unless 42 > 41
|
||||
|
||||
c.text: if false
|
||||
'error'
|
||||
else
|
||||
c.text + '---'.
|
||||
|
||||
d = {
|
||||
text = c.text
|
||||
}
|
||||
|
||||
c.list: l for l in d.text.split('') if l is '-'.
|
||||
|
||||
c.single: c.list[1, 1][0].
|
||||
|
||||
print(func() == '-')
|
||||
Reference in New Issue
Block a user