Failing test for string interpolation. Interpolated strings need to be expressions, not values.
This commit is contained in:
parent
89534b88b1
commit
2e744a1c1b
|
@ -48,8 +48,10 @@ ok "values: ${list.join ' '}" is 'values: 0 1 2 3 4 5 6 7 8 9'
|
||||||
obj: {
|
obj: {
|
||||||
name: 'Joe'
|
name: 'Joe'
|
||||||
hi: -> "Hello $@name."
|
hi: -> "Hello $@name."
|
||||||
|
cya: -> "Hello $@name.".replace('Hello','Goodbye')
|
||||||
}
|
}
|
||||||
ok obj.hi() is "Hello Joe."
|
ok obj.hi() is "Hello Joe."
|
||||||
|
ok obj.cya() is "Goodbye Joe."
|
||||||
|
|
||||||
ok "With ${"quotes"}" is 'With quotes'
|
ok "With ${"quotes"}" is 'With quotes'
|
||||||
ok 'With ${"quotes"}' is 'With ${"quotes"}'
|
ok 'With ${"quotes"}' is 'With ${"quotes"}'
|
||||||
|
|
Loading…
Reference in New Issue