サンプル
CSV skip_blanks does not skip delimiter-only rows with custom col_sep
sha256:626954f19000c4f5138f87e4cb2ea1eac1b97c5465cca1387b42e1d2d59eca8c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- CSV skip_blanks does not skip delimiter-only rows with custom col_sep HOW
- パッケージ
- csv 3.2.2
- 環境
- ruby
- 作成日
- 2026-08-17T02:36:09Z
よくある思い込み
skip_blanks:true causes any row that contains no non‑separator characters to be omitted, even when the row consists solely of delimiters
このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。
コントラクト
- rows = CSV.parse(data, col_sep: '|', skip_blanks: true); raise 'expected three rows' unless rows.size == 3
- raise 'expected delimiter-only row to remain as nil fields' unless rows[1] == [nil, nil, nil]
ファイル
- Gemfile
- Gemfile.lock
- csx.json
- test/contract.rb
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9