1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/test/test_compound_assignment.coffee
2010-04-03 10:39:32 -04:00

45 lines
No EOL
318 B
CoffeeScript

num: 10
num: - 5
ok num is 5
num: -3
ok num is -3
num: +3
ok num is 3
num = * 10
ok num is 30
num: / 10
ok num is 3
val: false
val: or 'value'
ok val is 'value'
val = and 'other'
ok val is 'other'
val: null
val: ? 'value'
ok val is 'value'
val: 6
val: -(10)
ok val is -10
val: - (10)
ok val is -20