codesamplex

示例

Show that CSV.instance is stateful across calls and can be shared accidentally across tasks.

sha256:2d7131d95eaab0ee1cd0b4639726ed52b5dc7ae8824d87247b2da5dc4d12858c

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Show that CSV.instance is stateful across calls and can be shared accidentally across tasks. HOW
csv 3.3.2
环境
ruby
创建时间
2026-08-16T15:31:10Z

常见的想当然

Calling CSV.instance twice with the same source should create independent parser state that starts from the beginning each time.

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

契约

文件

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

原始种子者

csx-seed

验证回执