Skip to content

Commit 5ea4e05

Browse files
committed
revert test expectation
1 parent c9bfbc3 commit 5ea4e05

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

test/test_ripper_tags.rb

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
require 'test/unit'
22
require 'ripper-tags/parser'
3+
require 'pp'
34

45
class TagRipperTest < Test::Unit::TestCase
56
def extract(code)
67
RipperTags::Parser.extract(code)
78
rescue
89
puts
9-
p Prism.parse(code).value
10+
if ENV["PRISM_VISITOR"] || ENV["PRISM_WALK"]
11+
p Prism.parse(code).value
12+
else
13+
pp Ripper.sexp(code)
14+
end
1015
raise
1116
end
1217

@@ -97,15 +102,15 @@ def test_nested_constant_definitions
97102
EOC
98103

99104
assert_equal %w[
100-
STATUSES
101105
OPEN
102-
FROZEN_ARRAY
106+
STATUSES
103107
ARRAY_ENTRY
104-
DISPLAY_MAPPING
108+
FROZEN_ARRAY
105109
CANCELLED
106110
STARTED
107-
FROZEN_HASH
111+
DISPLAY_MAPPING
108112
HASH_ENTRY
113+
FROZEN_HASH
109114
], tags.map { |t| t[:name] }
110115

111116
tags.each do |t|

0 commit comments

Comments
 (0)