Skip to content

Commit 26a3336

Browse files
committed
custom some equals function
1 parent b9f2790 commit 26a3336

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/store_test.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,8 @@ void main() {
518518
++projectorCount;
519519
return items.where((i) => i.contains(term ?? '')).toBuiltList();
520520
},
521+
equals2: (BuiltList<String> prev, BuiltList<String> next) =>
522+
prev == next,
521523
);
522524

523525
expect(filtered.requireValue, <String>[].build());
@@ -617,6 +619,7 @@ void main() {
617619
.take(otherState)
618620
.toBuiltList();
619621
},
622+
equals3: (int prev, int next) => prev == next,
620623
);
621624

622625
expect(filtered.requireValue, <String>[].build());
@@ -695,6 +698,7 @@ void main() {
695698
Tuple4(subState1, subState2, subState3, subState4),
696699
count: 4 + 1, // inc. calling to produce seed value
697700
),
701+
equals3: (String prev, String next) => prev == next,
698702
);
699703

700704
final tuple4 = Tuple4<int, double, String, bool>(0, 1.0, '', true);
@@ -780,6 +784,7 @@ void main() {
780784
Tuple5(subState1, subState2, subState3, subState4, subState5),
781785
count: 5 + 1, // inc. calling to produce seed value
782786
),
787+
equals3: (String prev, String next) => prev == next,
783788
);
784789

785790
expect(tuple$.value, Tuple5(0, 1.0, '', true, <String>[].build()));

0 commit comments

Comments
 (0)