Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Jan 23, 2024
1 parent 0461b0c commit a87c89d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/backlinks_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ Future<void> main([List<String>? args]) async {
isA<RealmResultsChanges<Source>>().having((ch) => ch.inserted, 'inserted', [0]),
isA<RealmResultsChanges<Source>>().having((ch) => ch.inserted, 'inserted', [1]),
isA<RealmResultsChanges<Source>>() //
.having((ch) => ch.inserted, 'inserted', [0, 2]) // is this surprising?
// Backlinks don't have a natural order - removing the element at 0, then adding a new one will
// appear like the new one was added at position 0.
.having((ch) => ch.inserted, 'inserted', [0, 2]) //
.having((ch) => ch.deleted, 'deleted', [0]) //
.having((ch) => ch.modified, 'modified', [1]),
]));
Expand Down Expand Up @@ -230,7 +232,9 @@ Future<void> main([List<String>? args]) async {
isA<RealmResultsChanges<Source>>().having((ch) => ch.inserted, 'inserted', [0]),
isA<RealmResultsChanges<Source>>().having((ch) => ch.inserted, 'inserted', [1]),
isA<RealmResultsChanges<Source>>() //
.having((ch) => ch.inserted, 'inserted', [0, 2]) // is this surprising?
// Backlinks don't have a natural order - removing the element at 0, then adding a new one will
// appear like the new one was added at position 0.
.having((ch) => ch.inserted, 'inserted', [0, 2]) //
.having((ch) => ch.deleted, 'deleted', [0]) //
.having((ch) => ch.modified, 'modified', [1]),
]));
Expand Down

0 comments on commit a87c89d

Please sign in to comment.