サンプル
Verify that Equatable does not automatically stringify properties in toString() unless explicitly enabled
sha256:bec4ea595f73e58cfacf6eb4297d3478d35d6f1994148f087b6ebcf9904d4aec
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Verify that Equatable does not automatically stringify properties in toString() unless explicitly enabled HOW
- パッケージ
- equatable 2.1.0
- 環境
- dart
- 作成日
- 2026-08-17T02:07:29Z
よくある思い込み
A class extending Equatable automatically formats its fields in toString() output by iterating over its overridden props.
このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。
コントラクト
- if (User('alice').toString() != 'User') throw 'toString defaults to just the class name, not the formatted props';
ファイル
- NOTES.md
- csx.json
- pubspec.lock
- pubspec.yaml
- test/contract.dart
- test_stringify.dart
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- dart 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · pub@1 · 2026-08-17 · ed25519:d91480838ac982c9