blob: 5ba239eacebd75a7ae973aa420a5824d9b0bff10 [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 final String currentAsString
* Returns null if current is null.
* @description Checks that null is returned.
* @author msyabro
*/
import "../../../Utils/expect.dart";
main() {
var it = new RuneIterator('');
Expect.isNull(it.currentAsString);
it.moveNext();
Expect.isNull(it.currentAsString);
it = new RuneIterator('a');
Expect.isNull(it.currentAsString);
it.moveNext();
it.moveNext();
Expect.isNull(it.currentAsString);
}