From 6645fbb895d26271ef827df084a0d2b29da4d5f5 Mon Sep 17 00:00:00 2001 From: Giles Bowkett Date: Mon, 23 Feb 2015 16:39:05 -0700 Subject: [PATCH] added descriptions to tests which only had Issue numbers --- test/assignment.coffee | 4 ++-- test/compilation.coffee | 4 ++-- test/control_flow.coffee | 2 +- test/soaks.coffee | 7 +++---- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/test/assignment.coffee b/test/assignment.coffee index 1f615bf7..c1c908e4 100644 --- a/test/assignment.coffee +++ b/test/assignment.coffee @@ -162,7 +162,7 @@ test "variable swapping to verify caching of RHS values when appropriate", -> eq nonceB, b eq nonceC, c -test "#713", -> +test "#713: destructuring assignment should return right-hand-side value", -> nonces = [nonceA={},nonceB={}] eq nonces, [a, b] = [c, d] = nonces eq nonceA, a @@ -247,7 +247,7 @@ test "destructuring assignment with context (@) properties", -> eq d, obj.d eq e, obj.e -test "#1024", -> +test "#1024: destructure empty assignments to produce javascript-like results", -> eq 2 * [] = 3 + 5, 16 test "#1005: invalid identifiers allowed on LHS of destructuring assignment", -> diff --git a/test/compilation.coffee b/test/compilation.coffee index b1b5247a..390375c8 100644 --- a/test/compilation.coffee +++ b/test/compilation.coffee @@ -81,7 +81,7 @@ test "#2516: Unicode spaces should not be part of identifiers", -> test "don't accidentally stringify keywords", -> ok (-> this == 'this')() is false -test "#1026", -> +test "#1026: no if/else/else allowed", -> cantCompile ''' if a b @@ -91,7 +91,7 @@ test "#1026", -> d ''' -test "#1050", -> +test "#1050: no closing asterisk comments from within block comments", -> cantCompile "### */ ###" test "#1273: escaping quotes at the end of heredocs", -> diff --git a/test/control_flow.coffee b/test/control_flow.coffee index f074ef3d..9725f445 100644 --- a/test/control_flow.coffee +++ b/test/control_flow.coffee @@ -186,7 +186,7 @@ test "tight formatting with leading `then`", -> then nonce else undefined -test "#738", -> +test "#738: inline function defintion", -> nonce = {} fn = if true then -> nonce eq nonce, fn() diff --git a/test/soaks.coffee b/test/soaks.coffee index 330a99b2..375d3929 100644 --- a/test/soaks.coffee +++ b/test/soaks.coffee @@ -52,11 +52,10 @@ test "function invocation with soaked property access", -> test "if-to-ternary should safely parenthesize soaked property accesses", -> ok (if nonexistent?.property then false else true) -test "#726", -> - # TODO: check this test, looks like it's not really testing anything +test "#726: don't check for a property on a conditionally-referenced nonexistent thing", -> eq undefined, nonexistent?[Date()] -test "#756", -> +test "#756: conditional assignment edge cases", -> # TODO: improve this test a = null ok isNaN a?.b.c + 1 @@ -88,7 +87,7 @@ test "soaked method invocation", -> eq obj , obj.increment().increment().self?() eq 2 , counter -test "#733", -> +test "#733: conditional assignments", -> a = b: {c: null} eq a.b?.c?(), undefined a.b?.c or= (it) -> it