Skip to content

Vendor tests from https://github.com/nst/JSONTestSuite#1015

Merged
byroot merged 1 commit into
ruby:masterfrom
byroot:minefield-tests
Jun 18, 2026
Merged

Vendor tests from https://github.com/nst/JSONTestSuite#1015
byroot merged 1 commit into
ruby:masterfrom
byroot:minefield-tests

Conversation

@byroot

@byroot byroot commented Jun 18, 2026

Copy link
Copy Markdown
Member

It's only testing if we run into a parsing error or not, not testing the actual parsed value, but that's still useful to help ensure we're not changing behavior on dark corners of the spec.

@byroot byroot force-pushed the minefield-tests branch from 3ee12f0 to 6a7cb42 Compare June 18, 2026 08:38
It's only testing if we run into a parsing error or not, not
testing the actual parsed value, but that's still useful to
help ensure we're not changing behavior on dark corners of the
spec.
@byroot byroot force-pushed the minefield-tests branch from 6a7cb42 to d617f26 Compare June 18, 2026 08:45
@byroot byroot merged commit 5973ecf into ruby:master Jun 18, 2026
41 of 42 checks passed
@byroot byroot deleted the minefield-tests branch June 18, 2026 08:50
end

fixtures.each do |path|
payload = File.read(path)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of encoding errors.
http://rubyci.s3.amazonaws.com/debian/ruby-master/log/20260618T093002Z.fail.html.gz

Probably need to read in binary mode:

Suggested change
payload = File.read(path)
payload = File.binread(path)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants