Skip to content

Commit

Permalink
Yarp fixes for show_syntax_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Sep 5, 2023
1 parent 1701105 commit 60014ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/requests/show_syntax_tree_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def test_returns_ast_if_document_is_parsed
[LocalVariableWriteNode(0...9)(
:foo,
0,
IntegerNode(6...9)(),
(0...3),
IntegerNode(6...9)(),
(4...5)
)]
)
Expand Down Expand Up @@ -93,13 +93,13 @@ def test_returns_ast_for_a_selection
}).response

assert_equal(<<~AST, response[:ast])
LocalVariableWriteNode(0...9)(:foo, 0, IntegerNode(6...9)(), (0...3), (4...5))
LocalVariableWriteNode(0...9)(:foo, 0, (0...3), IntegerNode(6...9)(), (4...5))
LocalVariableWriteNode(10...19)(
:bar,
0,
IntegerNode(16...19)(),
(10...13),
IntegerNode(16...19)(),
(14...15)
)
AST
Expand Down

0 comments on commit 60014ad

Please sign in to comment.