CodeSampleX

サンプル

nimble_csv 1.3.0: 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.

検証済みサンプル — hex nimble_csv 1.3.0: Demonstrate that NimbleCSV.parse_string defaults to skip_headers: true, discarding the first row, and verify its quote…

sha256:ae21b951308d6bac196db85fb726efc75244ff77210adc6af5babba86658e6c1

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
2
ビルドした署名鍵
2
宣言された環境 elixir linux x64 elixir elixir mix

検証実行環境

環境 コントラクト ステージ 実行日
elixir 1 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:PASS · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · hex@1
2026-08-17
elixir 1 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:PASS · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · hex@1
2026-08-18

ケース

HOW
ゴール
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.
パッケージ
シンボル
  • NimbleCSV.parse_string
  • NimbleCSV.RFC4180.parse_string
環境
elixir
作成日
2026-08-17T07:29:23Z

コントラクト

  1. 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.
  2. assert single-row string without options returns empty list while skip_headers: false returns the row
  3. assert multiline CSV with embedded newlines in quotes and escaped double-quotes parses into multiline field values
  4. assert unescaped quote inside a field raises NimbleCSV.ParseError
  5. 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