Skip to content

Commit 7d7ed24

Browse files
committed
Add test for $-interpolation syntax in playground (verifies lowerer fix)
1 parent 5c89280 commit 7d7ed24

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2764,6 +2764,8 @@ process.stdout.write(String(f_isempty("hello")));
27642764
@testset "String interpolation" begin
27652765
@test playground_eval("x = 42\nprintln(string(\"x = \", x))") == "x = 42"
27662766
@test playground_eval("println(string(\"a\", \"b\", \"c\"))") == "abc"
2767+
# Dollar-sign interpolation syntax (the actual bug that was fixed)
2768+
@test playground_eval("name = \"World\"\nx = 42\nprintln(\"Hello, \$name! The answer is \$x.\")") == "Hello, World! The answer is 42."
27672769
end
27682770

27692771
@testset "Math functions" begin

0 commit comments

Comments
 (0)