blob: 4ef6e9b7490f228a6737b73c9914ce8f92489e9b [file] [log] [blame]
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/// @assertion int get rawIndex
/// Returns -1 if the current rune is null.
/// @description Checks that -1 is returned.
/// @author msyabro
import "../../../Utils/expect.dart";
main() {
var it = new RuneIterator('');
Expect.equals(-1, it.rawIndex);
it.moveNext();
Expect.equals(-1, it.rawIndex);
it = new RuneIterator('a');
Expect.equals(-1, it.rawIndex);
it.moveNext();
it.moveNext();
Expect.equals(-1, it.rawIndex);
}