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:
Mark Zhou 2020-01-18 02:55:28 +00:00 committed by commit-bot@chromium.org
parent 7e6939643d
commit 65b8b6805d

View file

@ -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);