test/parse_helper.rb in parser-2.2.0.3 vs test/parse_helper.rb in parser-2.2.0.4
- old
+ new
@@ -93,9 +93,11 @@
if astlet.nil?
# This is a testsuite bug.
raise "No entity with AST path #{ast_path} in #{parsed_ast.inspect}"
end
+ assert astlet.frozen?
+
assert astlet.location.respond_to?(map_field),
"(#{version}) #{astlet.location.inspect}.respond_to?(#{map_field.inspect}) for:\n#{parsed_ast.inspect}"
range = astlet.location.send(map_field)