CodeSampleX

サンプル

Assert that maps of equal length with differing keys and null values are evaluated as unequal under equatable 2.0.8, correcting the false positive in 2.0.7

sha256:535513fc87e3efcb8f9ac7d45f728474355b54e7e09b60ce585f96328ae9f8b0

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Assert that maps of equal length with differing keys and null values are evaluated as unequal under equatable 2.0.8, correcting the false positive in 2.0.7 HOW
パッケージ
equatable 2.0.8
環境
dart
作成日
2026-08-17T02:07:39Z

よくある思い込み

An Equatable instance containing a Map property evaluates equality by comparing both keys and values, returning false if keys differ.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート