diff options
author | Jemma Issroff <jemmaissroff@gmail.com> | 2023-09-08 10:40:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 10:40:07 -0400 |
commit | 8807b0dc96cbb0d0b72cddae2f41dd163589b7cc (patch) | |
tree | 181b93ab20fe144371908a5427926c6c54076750 /test | |
parent | c7d61181d068b3471386749b6899dc7d3005273c (diff) |
[YARP] Implement compilation for InterpolatedXStringNode (#8395)
* [YARP] Implemented compilation for InterpolatedXStringNode
* Extract common function for interpolated nodes
Notes
Notes:
Merged-By: jemmaissroff
Diffstat (limited to 'test')
-rw-r--r-- | test/yarp/compiler_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/yarp/compiler_test.rb b/test/yarp/compiler_test.rb index 4f81138037..f7f8618ada 100644 --- a/test/yarp/compiler_test.rb +++ b/test/yarp/compiler_test.rb @@ -178,6 +178,11 @@ module YARP assert_equal :"1 3 1", compile(':"1 #{1 + 2} 1"') end + def test_InterpolatedXStringNode + assert_equal "1\n", compile('`echo #{1}`') + assert_equal "100", compile('`printf "100"`') + end + def test_StringConcatNode # assert_equal "YARP::CompilerTest", compile('"YARP" "::" "CompilerTest"') end |