Skip to content

Commit

Permalink
fixup! feat!: rework TD @context handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed May 18, 2024
1 parent 6db1fc4 commit 7d3e8b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/core/context_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,17 @@ void main() {
throwsA(isA<ValidationException>()),
);
});

test("correctly override the hashCode getter", () {
const string1 = "foobar";
const string2 = "foobar";

final singleContextValue1 = SingleContextEntry.fromString(string1);
final singleContextValue2 = SingleContextEntry.fromString(string2);

expect(string1.hashCode, string2.hashCode);

expect(singleContextValue1.hashCode, singleContextValue2.hashCode);
});
});
}

0 comments on commit 7d3e8b0

Please sign in to comment.