blob: d0f6138ea0164bd1ec500e0cd0ae728ad37480a5 [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 an empty string if there is no current rune
* @description Checks that empty string is returned.
* @author msyabro
*/
import "../../../Utils/expect.dart";
main() {
var it = new RuneIterator('');
Expect.equals("", it.currentAsString);
it.moveNext();
Expect.equals("", it.currentAsString);
it = new RuneIterator('a');
Expect.equals("", it.currentAsString);
it.moveNext();
it.moveNext();
Expect.equals("", it.currentAsString);
}