mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
Updating iterator expected values from null to -1.
Change-Id: Ic143c6382a971a6b3408180ec8c5c56077b04f5c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/132406 Reviewed-by: Bob Nystrom <rnystrom@google.com> Commit-Queue: Mark Zhou <markzipan@google.com>
This commit is contained in:
parent
7e6939643d
commit
65b8b6805d
1 changed files with 4 additions and 4 deletions
|
@ -41,16 +41,16 @@ main() {
|
|||
|
||||
// Reset, moveNext.
|
||||
it.reset(1);
|
||||
Expect.equals(null, it.rawIndex);
|
||||
Expect.equals(null, it.current);
|
||||
Expect.equals(-1, it.rawIndex);
|
||||
Expect.equals(-1, it.current);
|
||||
it.moveNext();
|
||||
Expect.equals(1, it.rawIndex);
|
||||
Expect.equals(expectedRunes[1], it.current);
|
||||
|
||||
// Reset, movePrevious.
|
||||
it.reset(1);
|
||||
Expect.equals(null, it.rawIndex);
|
||||
Expect.equals(null, it.current);
|
||||
Expect.equals(-1, it.rawIndex);
|
||||
Expect.equals(-1, it.current);
|
||||
it.movePrevious();
|
||||
Expect.equals(0, it.rawIndex);
|
||||
Expect.equals(expectedRunes[0], it.current);
|
||||
|
|
Loading…
Reference in a new issue