Sample
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
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- elixir
- Operating system
- linux
- Architecture
- x64
- Runtime
- elixir
- Language
- elixir
- Package manager
- mix
Verification-run environments
- Execution context
- elixir 1
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- elixir 1
- Language
- elixir
- Package manager
- mix
- Execution
- container · docker
CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17
Case
- Goal
- 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
- Packages
-
nimble_csv 1.3.0
- Environment
- elixir
- Created
- 2026-08-17T07:29:23Z
Commonly assumed
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.
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- 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
Files
- NOTES.md
- csx.json
- mix.exs
- mix.lock
- test/contract.exs
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- elixir 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17 · ed25519:d91480838ac982c9