Skip to content

Commit

Permalink
🐛 Fix parser benchmarks generation
Browse files Browse the repository at this point in the history
The bug was caused by the change to use SearchResult (which inherits
from Array).
  • Loading branch information
nevans committed Feb 4, 2024
1 parent 8729a0a commit 957efeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rakelib/benchmarks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ file "benchmarks/parser.yml" => PARSER_TEST_FIXTURES do |t|
files = path.glob("*.yml")
tests = files.flat_map {|file|
file.read
.gsub(%r{([-:]) !ruby/(object|struct):\S+}) { $1 }
.gsub(%r{([-:]) !ruby/(object|struct|array):\S+}) { $1 }
.then {
YAML.safe_load(_1, filename: file,
permitted_classes: [Symbol, Regexp], aliases: true)
Expand Down

0 comments on commit 957efeb

Please sign in to comment.