From 2e744a1c1be55bcd18dc3aa49108ae614da3ef70 Mon Sep 17 00:00:00 2001 From: Chris Lloyd Date: Sun, 4 Apr 2010 16:54:59 +1000 Subject: [PATCH] Failing test for string interpolation. Interpolated strings need to be expressions, not values. --- test/test_string_interpolation.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_string_interpolation.coffee b/test/test_string_interpolation.coffee index a69c2780..b7b8c79c 100644 --- a/test/test_string_interpolation.coffee +++ b/test/test_string_interpolation.coffee @@ -48,8 +48,10 @@ ok "values: ${list.join ' '}" is 'values: 0 1 2 3 4 5 6 7 8 9' obj: { name: 'Joe' hi: -> "Hello $@name." + cya: -> "Hello $@name.".replace('Hello','Goodbye') } ok obj.hi() is "Hello Joe." +ok obj.cya() is "Goodbye Joe." ok "With ${"quotes"}" is 'With quotes' ok 'With ${"quotes"}' is 'With ${"quotes"}'