summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/snapshots/seattlerb/pct_w_heredoc_interp_nested.txt28
-rw-r--r--test/yarp/parse_test.rb1
2 files changed, 28 insertions, 1 deletions
diff --git a/test/snapshots/seattlerb/pct_w_heredoc_interp_nested.txt b/test/snapshots/seattlerb/pct_w_heredoc_interp_nested.txt
new file mode 100644
index 0000000000..89ce74ce19
--- /dev/null
+++ b/test/snapshots/seattlerb/pct_w_heredoc_interp_nested.txt
@@ -0,0 +1,28 @@
+ProgramNode(0...30)(
+ [],
+ StatementsNode(0...30)(
+ [ArrayNode(0...30)(
+ [StringNode(4...5)(nil, (4...5), nil, "1"),
+ InterpolatedStringNode(0...12)(
+ nil,
+ [EmbeddedStatementsNode(6...12)(
+ (6...8),
+ StatementsNode(8...19)(
+ [InterpolatedStringNode(8...19)(
+ (8...11),
+ [StringNode(15...17)(nil, (15...17), nil, "2\n")],
+ (17...19)
+ )]
+ ),
+ (11...12)
+ )],
+ nil
+ ),
+ StringNode(13...14)(nil, (13...14), nil, "3"),
+ StringNode(25...26)(nil, (25...26), nil, "4"),
+ StringNode(27...28)(nil, (27...28), nil, "5")],
+ (0...3),
+ (29...30)
+ )]
+ )
+)
diff --git a/test/yarp/parse_test.rb b/test/yarp/parse_test.rb
index 3eff7d447f..b6020b82db 100644
--- a/test/yarp/parse_test.rb
+++ b/test/yarp/parse_test.rb
@@ -28,7 +28,6 @@ class ParseTest < Test::Unit::TestCase
known_failures = %w[
seattlerb/heredoc_nested.txt
- seattlerb/pct_w_heredoc_interp_nested.txt
]
def find_source_file_node(node)