codesamplex

示例

Show that when NimbleCSV.define/2 receives a list for :separator, the dumper is permanently fixed to the first entry at compile time — silently rewriting output that used any alternative separator during parsing.

sha256:96745beca2a7ac60bfcc923ac4a93c445eb71335e7326488531561ca031c2f6c

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Show that when NimbleCSV.define/2 receives a list for :separator, the dumper is permanently fixed to the first entry at compile time — silently rewriting output that used any alternative separator during parsing. HOW
nimble_csv 1.3.0
环境
elixir
创建时间
2026-08-16T15:09:22Z

常见的想当然

When a parser is defined with separator: ["|", ";"], dumping rows that were parsed from semicolon-delimited input will preserve the semicolon separator, because the parser accepted that format.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执