refactored and added a test for a8da321

This commit is contained in:
satyr
2010-10-23 02:59:25 +09:00
parent a8da321883
commit 1130f4fef5
3 changed files with 18 additions and 11 deletions

View File

@@ -53,7 +53,7 @@ memoize = (fn) ->
Math = {
Add: (a, b) -> a + b
AnonymousAdd: ((a, b) -> a + b)
AnonymousAdd: (a, b) -> a + b
FastAdd: memoize (a, b) -> a + b
}
@@ -339,3 +339,9 @@ ok (func -5) is -4
# Prefix unary assignment operators are allowed in parenless calls.
val = 5
ok (func --val) is 5
eq ok, new ->
ok
### Should `return` implicitly ###
### even with trailing comments. ###