Index: utils/tests/string_encoding/utf32_test.dart |
diff --git a/utils/tests/string_encoding/utf32_test.dart b/utils/tests/string_encoding/utf32_test.dart |
index 7b6582455df229c8f83a17ed624103b93a7f70b3..eb727bc74e8d0ea7afd5125eac0499e579b895ef 100755 |
--- a/utils/tests/string_encoding/utf32_test.dart |
+++ b/utils/tests/string_encoding/utf32_test.dart |
@@ -165,13 +165,13 @@ class Utf32Tests extends TestClass { |
void testIterableMethods() { |
// empty input |
- Expect.isFalse(decodeUtf32AsIterable([]).iterator().hasNext); |
+ Expect.isFalse(decodeUtf32AsIterable([]).iterator.moveNext()); |
IterableUtf32Decoder koreanDecoder = |
decodeUtf32AsIterable(testKoreanCharSubsetUtf32beBom); |
// get the first character |
Expect.equals(testKoreanCharSubset.charCodes[0], |
- koreanDecoder.iterator().next()); |
+ koreanDecoder.iterator.first); |
// get the whole translation using the Iterable interface |
Expect.stringEquals(testKoreanCharSubset, |
new String.fromCharCodes(new List<int>.from(koreanDecoder))); |