Add another test

This commit is contained in:
Till Friebe 2020-06-08 18:36:06 +02:00
parent 7a652e5ac6
commit a846b6c425
1 changed files with 8 additions and 0 deletions

View File

@ -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)));
});
});
}