File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -399,8 +399,16 @@ void main() {
399
399
}
400
400
401
401
int compareAB ({required String ? topic}) {
402
- return MentionAutocompleteView .compareByRecency (userA, userB,
402
+ final resultAB = MentionAutocompleteView .compareByRecency (userA, userB,
403
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;
404
412
}
405
413
406
414
test ('prioritizes the user with more recent activity in the topic' , () async {
You can’t perform that action at this time.
0 commit comments