1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/test/fixtures/execution/test_everything.coffee

28 lines
311 B
CoffeeScript
Raw Normal View History

func: =>
a: 3
b: []
while a >= 0
b.push('o')
2009-12-28 23:08:02 -05:00
a--
c: {
"text": b
}
c: 'error' unless 42 > 41
c.text: if false
'error'
else
2009-12-28 23:08:02 -05:00
c.text + '---'
d = {
text = c.text
}
c.list: l for l in d.text.split('') when l is '-'
2009-12-28 23:08:02 -05:00
c.single: c.list[1..1][0]
print(func() == '-')