blob: a4abb9bc585d5dc40f6970ffd076323f92c9aa9f [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.
*/
/**
* @assertion bool movePrevious()
* Returns false and sets [current] to null if there is no previous element.
* @description Checks that [current] is set to null if no previous element left.
* @author msyabro
*/
import "../../../Utils/expect.dart";
main() {
var it = new RuneIterator('');
it.movePrevious();
Expect.isNull(it.current);
it = new RuneIterator('abc');
it.moveNext();
it.movePrevious();
Expect.isNull(it.current);
}