mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
node conversion finished, narwhal removed.
This commit is contained in:
10
test/fixtures/execution/test_arguments.coffee
vendored
10
test/fixtures/execution/test_arguments.coffee
vendored
@@ -4,12 +4,12 @@ area: (x, y, x1, y1) ->
|
||||
x: y: 10
|
||||
x1: y1: 20
|
||||
|
||||
print area(x, y, x1, y1) is 100
|
||||
puts area(x, y, x1, y1) is 100
|
||||
|
||||
print(area(x, y,
|
||||
puts(area(x, y,
|
||||
x1, y1) is 100)
|
||||
|
||||
print(area(
|
||||
puts(area(
|
||||
x
|
||||
y
|
||||
x1
|
||||
@@ -19,7 +19,7 @@ print(area(
|
||||
|
||||
# Arguments are turned into arrays.
|
||||
curried: ->
|
||||
print area.apply(this, arguments.concat(20, 20)) is 100
|
||||
puts area.apply(this, arguments.concat(20, 20)) is 100
|
||||
|
||||
curried 10, 10
|
||||
|
||||
@@ -29,4 +29,4 @@ func: ->
|
||||
arguments: 25
|
||||
arguments
|
||||
|
||||
print func(100) is 25
|
||||
puts func(100) is 25
|
||||
|
||||
Reference in New Issue
Block a user