샘플
Encode and decode Base64 distinguishing RFC 2045 line-wrapped MIME format from RFC 4648 strict single-line tokens and unpadded URL-safe strings
sha256:f8db5d5b06642ffab3e5fd90c8bf484d652b28d5bc690cc868c1e72b578d0f82
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Encode and decode Base64 distinguishing RFC 2045 line-wrapped MIME format from RFC 4648 strict single-line tokens and unpadded URL-safe strings HOW
- 패키지
- base64 0.3.0
- 환경
- ruby
- 생성일
- 2026-08-16T09:01:39Z
컨트랙트
- assert Base64.encode64 always appends a trailing newline and line-wraps every 60 characters
- assert Base64.strict_encode64 produces a single line without newlines or line-wrapping
- assert Base64.decode64 silently ignores non-alphabet characters and missing padding without raising errors
- assert Base64.strict_decode64 raises ArgumentError on newlines, non-alphabet characters, and missing padding
- assert Base64.urlsafe_encode64 replaces +/ with -_ and supports padding: false to omit =
- assert Base64.urlsafe_decode64 decodes both padded and unpadded URL-safe strings while rejecting + and /
- assert Base64 decode methods always return ASCII-8BIT binary encoded strings
파일
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-16 · ed25519:d91480838ac982c9