Failing test for string interpolation. Interpolated strings need to be expressions, not values.

This commit is contained in:
Chris Lloyd 2010-04-04 16:54:59 +10:00
parent 89534b88b1
commit 2e744a1c1b
1 changed files with 2 additions and 0 deletions

View File

@ -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"}'