Skip to content

Commit 957efeb

Browse files
committed
🐛 Fix parser benchmarks generation
The bug was caused by the change to use SearchResult (which inherits from Array).
1 parent 8729a0a commit 957efeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rakelib/benchmarks.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ file "benchmarks/parser.yml" => PARSER_TEST_FIXTURES do |t|
2626
files = path.glob("*.yml")
2727
tests = files.flat_map {|file|
2828
file.read
29-
.gsub(%r{([-:]) !ruby/(object|struct):\S+}) { $1 }
29+
.gsub(%r{([-:]) !ruby/(object|struct|array):\S+}) { $1 }
3030
.then {
3131
YAML.safe_load(_1, filename: file,
3232
permitted_classes: [Symbol, Regexp], aliases: true)

0 commit comments

Comments
 (0)