Skip to content

Commit

Permalink
Minor fixes (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyinkin committed Oct 26, 2022
1 parent 53ec23d commit 1399ed2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/hidden_ranges/hidden_ranges.dart
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class HiddenRanges {
}
}

// upper == lower
// upper == lower - 1, or lower, or lower + 1
final range = ranges[upperRange];
switch (range.compareToPosition(position)) {
case -1:
Expand Down
4 changes: 2 additions & 2 deletions test/src/hidden_ranges/hidden_ranges_position_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void main() {
10: 5,
11: 6,
};
int i = 1;
int i = 0;

for (final example in examples.entries) {
final input = example.key;
Expand Down Expand Up @@ -202,7 +202,7 @@ void main() {
5: [10, 5],
6: [11, 11],
};
int i = 1;
int i = 0;

for (final example in examples.entries) {
for (int affinityIndex = 0; affinityIndex < 2; affinityIndex++) {
Expand Down

0 comments on commit 1399ed2

Please sign in to comment.