[ruby/yarp] Add test for empty heredoc

https://github.com/ruby/yarp/commit/e49b63a79e
This commit is contained in:
Kevin Newton 2023-08-14 13:58:24 -04:00 committed by Takashi Kokubun
parent 3536cad902
commit 957cd369fa
Notes: git 2023-08-17 00:47:58 +00:00
2 changed files with 10 additions and 6 deletions

View File

@ -39,6 +39,9 @@ EOF
b b
EOF EOF
<<-''
<<-'EOF' <<-'EOF'
a #{1} a #{1}
EOF EOF

View File

@ -1,6 +1,6 @@
ProgramNode(0...223)( ProgramNode(0...231)(
[], [],
StatementsNode(0...223)( StatementsNode(0...231)(
[InterpolatedStringNode(0...15)( [InterpolatedStringNode(0...15)(
(0...6), (0...6),
[StringNode(7...11)(nil, (7...11), nil, " a\n")], [StringNode(7...11)(nil, (7...11), nil, " a\n")],
@ -112,10 +112,11 @@ ProgramNode(0...223)(
[StringNode(188...196)(nil, (188...196), nil, " a\n" + " b\n")], [StringNode(188...196)(nil, (188...196), nil, " a\n" + " b\n")],
(196...200) (196...200)
), ),
InterpolatedStringNode(201...223)( InterpolatedStringNode(201...208)((201...206), [], (207...208)),
(201...209), InterpolatedStringNode(209...231)(
[StringNode(210...219)(nil, (210...219), nil, " a \#{1}\n")], (209...217),
(219...223) [StringNode(218...227)(nil, (218...227), nil, " a \#{1}\n")],
(227...231)
)] )]
) )
) )