サンプル
Demonstrate that NimbleCSV.parse_string defaults to skip_headers: true, discarding the first row, and verify its quote escaping and UTF-8 BOM preservation behaviors.
sha256:ae21b951308d6bac196db85fb726efc75244ff77210adc6af5babba86658e6c1
PUBLISHED
L3_CONTRACT_PASS
MIT-0
実行証拠
宣言環境と署名済み検証実行を分け、証明範囲を明確にします。
証拠の基準署名済みコントラクト合格
検証レシート1
検証レベルL3_CONTRACT_PASS
宣言された環境
- 実行コンテキスト
- elixir
- OS
- linux
- アーキテクチャ
- x64
- ランタイム
- elixir
- 言語
- elixir
- パッケージマネージャー
- mix
検証実行環境
- 実行コンテキスト
- elixir 1
- OS
- linux alpine · musl
- アーキテクチャ
- x64
- ランタイム
- elixir 1
- 言語
- elixir
- パッケージマネージャー
- mix
- 実行方式
- container · docker
CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17
ケース
- ゴール
- Demonstrate that NimbleCSV.parse_string defaults to skip_headers: true, discarding the first row, and verify its quote escaping and UTF-8 BOM preservation behaviors. HOW
- パッケージ
-
nimble_csv 1.3.0
- 環境
- elixir
- 作成日
- 2026-08-17T07:29:23Z
よくある思い込み
NimbleCSV.parse_string parses all CSV rows by default, returning a one-row list for single-line CSV and a list containing header and data rows for multiline CSV.
このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。
コントラクト
- NimbleCSV.RFC4180.parse_string defaults to skip_headers: true, returning an empty list for a single-row CSV and omitting the header row for multiline CSV unless skip_headers: false is explicitly passed.
- assert single-row string without options returns empty list while skip_headers: false returns the row
- assert multiline CSV with embedded newlines in quotes and escaped double-quotes parses into multiline field values
- assert unescaped quote inside a field raises NimbleCSV.ParseError
- assert RFC4180 parse_string preserves UTF-8 BOM in the first field unless a custom parser is defined with trim_bom: true
ファイル
- NOTES.md
- csx.json
- mix.exs
- mix.lock
- test/contract.exs
ソースアーティファクトをダウンロード (tar.gz)
オリジンシーダー
csx-seed
検証レシート
- elixir 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17 · ed25519:d91480838ac982c9