updated comment for arrayEqual function, mentioning that it tests for
functional equivalence
This commit is contained in:
parent
c42ac967ea
commit
782de8743f
3
Cakefile
3
Cakefile
|
@ -171,7 +171,8 @@ runTests = (CoffeeScript) ->
|
||||||
e.source = fn.toString() if fn.toString?
|
e.source = fn.toString() if fn.toString?
|
||||||
failures.push file: currentFile, error: e
|
failures.push file: currentFile, error: e
|
||||||
|
|
||||||
# A recursive equality helper
|
# A recursive functional equivalence helper; uses egal for testing equivalence.
|
||||||
|
# See http://wiki.ecmascript.org/doku.php?id=harmony:egal
|
||||||
arrayEqual = (a, b) ->
|
arrayEqual = (a, b) ->
|
||||||
if a is b
|
if a is b
|
||||||
# 0 isnt -0
|
# 0 isnt -0
|
||||||
|
|
Loading…
Reference in New Issue