mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
First draft of switching the CoffeeScript Compiler over to camelCase. Pour one on the ground for underscores...
This commit is contained in:
@@ -6,13 +6,13 @@ result: func 1, 2, 3, 4, 5
|
||||
ok result is "3 4 5"
|
||||
|
||||
|
||||
gold: silver: bronze: the_field: last: null
|
||||
gold: silver: bronze: theField: last: null
|
||||
|
||||
medalists: (first, second, third, rest..., unlucky) ->
|
||||
gold: first
|
||||
silver: second
|
||||
bronze: third
|
||||
the_field: rest.concat([last])
|
||||
theField: rest.concat([last])
|
||||
last: unlucky
|
||||
|
||||
contenders: [
|
||||
@@ -34,7 +34,7 @@ ok gold is "Mighty Mouse"
|
||||
ok silver is "Michael Phelps"
|
||||
ok bronze is "Liu Xiang"
|
||||
ok last is "Usain Bolt"
|
||||
ok the_field.length is 8
|
||||
ok theField.length is 8
|
||||
|
||||
contenders.reverse()
|
||||
medalists contenders[0...2]..., "Mighty Mouse", contenders[2...contenders.length]...
|
||||
@@ -43,7 +43,7 @@ ok gold is "Usain Bolt"
|
||||
ok silver is "Asafa Powell"
|
||||
ok bronze is "Mighty Mouse"
|
||||
ok last is "Michael Phelps"
|
||||
ok the_field.length is 8
|
||||
ok theField.length is 8
|
||||
|
||||
medalists contenders..., 'Tim', 'Moe', 'Jim'
|
||||
ok last is 'Jim'
|
||||
|
||||
Reference in New Issue
Block a user