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

Unified Diff: pkg/fasta/test/rasta/issue_000004.dart.outline.expect

Issue 2650913007: Import rasta tests. (Closed)
Patch Set: Address comment. Created 3 years, 11 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 | « pkg/fasta/test/rasta/issue_000004.dart.direct.expect ('k') | pkg/fasta/test/rasta/issue_000006.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fasta/test/rasta/issue_000004.dart.outline.expect
diff --git a/pkg/fasta/test/rasta/issue_000004.dart.outline.expect b/pkg/fasta/test/rasta/issue_000004.dart.outline.expect
new file mode 100644
index 0000000000000000000000000000000000000000..4c7bdc02570484d64e6a0bf13a84134fc48c16cf
--- /dev/null
+++ b/pkg/fasta/test/rasta/issue_000004.dart.outline.expect
@@ -0,0 +1,34 @@
+library;
+import self as self;
+import "package:expect/expect.dart" as exp;
+
+static field dynamic global;
+static method fact4() → dynamic {
+ dynamic f = 1;
+ for (dynamic n in <dynamic>[1, 2, 3, 4]) {
+ f = f.*(n);
+ }
+ return f;
+}
+static method fact5() → dynamic {
+ dynamic f = 1;
+ dynamic n;
+ for (final dynamic #t1 in <dynamic>[1, 2, 3, 4, 5]) {
+ n = #t1;
+ f = f.*(n);
+ }
+ return f;
+}
+static method fact6() → dynamic {
+ dynamic f = 1;
+ for (final dynamic #t2 in <dynamic>[1, 2, 3, 4, 5, 6]) {
+ self::global = #t2;
+ f = f.*(self::global);
+ }
+ return f;
+}
+static method main() → dynamic {
+ exp::Expect::isTrue(self::fact4().==(24));
+ exp::Expect::isTrue(self::fact5().==(120));
+ exp::Expect::isTrue(self::fact6().==(720));
+}
« no previous file with comments | « pkg/fasta/test/rasta/issue_000004.dart.direct.expect ('k') | pkg/fasta/test/rasta/issue_000006.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698