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

検証レシート