We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c7096f commit a5b3cc8Copy full SHA for a5b3cc8
test/model/autocomplete_test.dart
@@ -399,8 +399,16 @@ void main() {
399
}
400
401
int compareAB({required String? topic}) {
402
- return MentionAutocompleteView.compareByRecency(userA, userB,
+ final resultAB = MentionAutocompleteView.compareByRecency(userA, userB,
403
streamId: stream.streamId, topic: topic, store: store);
404
+ final resultBA = MentionAutocompleteView.compareByRecency(userB, userA,
405
+ streamId: stream.streamId, topic: topic, store: store);
406
+ switch (resultAB) {
407
+ case <0: check(resultBA).isGreaterThan(0);
408
+ case >0: check(resultBA).isLessThan(0);
409
+ default: check(resultBA).equals(0);
410
+ }
411
+ return resultAB;
412
413
414
test('prioritizes the user with more recent activity in the topic', () async {
0 commit comments