From cdf298bafb00383076b482955b5fc78026be7466 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Wed, 22 Dec 2010 17:10:21 -0800 Subject: [PATCH] Updating test.html --- test/test.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/test.html b/test/test.html index 9508897b..7676bb82 100644 --- a/test/test.html +++ b/test/test.html @@ -43,7 +43,7 @@ @eq = (x, y, msg) -> ok x is y, msg ? x + ' !== ' + y - arrayEq = (a, b) -> + window.arrayEq = (a, b) -> if a is b # 0 isnt -0 a isnt 0 or 1/a is 1/b @@ -55,6 +55,10 @@ # NaN is NaN a isnt a and b isnt b + window.doesNotThrow = (fn) -> + fn() + ok true + @arrayEqual = (a, b, msg) -> ok arrayEq(a,b), msg @throws = (fun, err, msg) -> @@ -95,10 +99,10 @@ 'test_existence' 'test_functions' 'test_heredocs' - 'test_if' + 'conditionals' 'test_literals' 'test_pattern_matching' - 'test_ranges_slices_and_splices' + 'ranges_slices_and_splices' 'test_returns' 'test_splats' 'test_strings'