Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1879)

Unified Diff: test/yaml_test.dart

Issue 1948223002: Fix all strong-mode warnings. (Closed) Base URL: git@github.com:dart-lang/yaml@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/yaml_test.dart
diff --git a/test/yaml_test.dart b/test/yaml_test.dart
index d2f5d19bac22e167df1b51fdd39491db66080c86..153af5e97e1e5b6e780545c19a7243fda79020cd 100644
--- a/test/yaml_test.dart
+++ b/test/yaml_test.dart
@@ -57,14 +57,14 @@ main() {
- foo:
bar
- 123
-""");
+""") as YamlList;
expect(yaml.span.start.line, equals(0));
expect(yaml.span.start.column, equals(0));
expect(yaml.span.end.line, equals(3));
expect(yaml.span.end.column, equals(0));
- var map = yaml.nodes.first;
+ var map = yaml.nodes.first as YamlMap;
expect(map.span.start.line, equals(0));
expect(map.span.start.column, equals(2));
expect(map.span.end.line, equals(2));
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698