mirror of https://github.com/AMT-Cheif/drift.git
Add another test
This commit is contained in:
parent
7a652e5ac6
commit
a846b6c425
|
@ -139,6 +139,14 @@ void main() {
|
|||
expect(first.hashCode, equals(equalToFirst.hashCode));
|
||||
expect(first, equals(equalToFirst));
|
||||
});
|
||||
|
||||
test("don't equal when one value is absent and the other one is null", () {
|
||||
const first = Value.absent();
|
||||
const different = Value(null);
|
||||
|
||||
expect(first.hashCode, isNot(equals(different.hashCode)));
|
||||
expect(first, isNot(equals(different)));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue