describe "string interpolation", -> it "should interpolate in double quotes", -> name = "World" result = "Hello #{name}!" assert.same result, "Hello World!" it "should interpolate numbers", -> a, b = 10, 20 result = "#{a} + #{b} = #{a + b}" assert.same result, "10 + 20 = 30" it "should interpolate expressions", -> x = 5 result = "x * 2 = #{x * 2}" assert.same result, "x * 2 = 10" it "should interpolate function calls", -> result = "result: #{math.floor 5.5}" assert.same result, "result: 5" it "should interpolate in string literals", -> x = 100 result = "Value: #{x}" assert.same result, "Value: 100" it "should work with nested interpolation", -> inner = "inner" result = "Outer: #{inner}" assert.same result, "Outer: inner" it "should not interpolate in single quotes", -> name = "World" result = 'Hello #{name}!' assert.same result, 'Hello #{name}!'