샘플
Navigate JSON.dump signature mismatches, JSON.load and symbolize_names addition conflicts, IO stream type rejections in JSON.parse, and custom object_class iterative mutation protocols
sha256:39ffcf364c07cc97b948c6bb4328939ce72e0c3d5458a40ec72e4fa5c5128aef
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Navigate JSON.dump signature mismatches, JSON.load and symbolize_names addition conflicts, IO stream type rejections in JSON.parse, and custom object_class iterative mutation protocols HOW
- 패키지
- json 2.9.1
- 환경
- ruby
- 생성일
- 2026-08-17T02:42:37Z
컨트랙트
- assert JSON.parse rejects IO streams with TypeError while JSON.load accepts them directly
- assert JSON.load with symbolize_names as second positional arg treats it as proc and silently leaves String keys
- assert JSON.load with symbolize_names as options conflicts with implicit create_additions and raises ArgumentError unless create_additions is false
- assert JSON.dump rejects kwargs and treats non-IO second arguments as limit or raises NoMethodError
- assert JSON.parse with object_class and array_class instantiates via arity-zero new and populates iteratively via []= and <<
- assert create_additions instantiates classes defining json_create matching JSON.create_id and leaves others as Hash
- assert freeze: true in JSON.parse deeply freezes containers and string keys and values
파일
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- src/json_api.rb
- test/contract.rb
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9