Skip to content

Commit

Permalink
revert test expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Dec 17, 2024
1 parent c9bfbc3 commit 5ea4e05
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions test/test_ripper_tags.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
require 'test/unit'
require 'ripper-tags/parser'
require 'pp'

class TagRipperTest < Test::Unit::TestCase
def extract(code)
RipperTags::Parser.extract(code)
rescue
puts
p Prism.parse(code).value
if ENV["PRISM_VISITOR"] || ENV["PRISM_WALK"]
p Prism.parse(code).value
else
pp Ripper.sexp(code)
end
raise
end

Expand Down Expand Up @@ -97,15 +102,15 @@ def test_nested_constant_definitions
EOC

assert_equal %w[
STATUSES
OPEN
FROZEN_ARRAY
STATUSES
ARRAY_ENTRY
DISPLAY_MAPPING
FROZEN_ARRAY
CANCELLED
STARTED
FROZEN_HASH
DISPLAY_MAPPING
HASH_ENTRY
FROZEN_HASH
], tags.map { |t| t[:name] }

tags.each do |t|
Expand Down

0 comments on commit 5ea4e05

Please sign in to comment.