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

Unified Diff: pkg/fasta/test/fibonacci.dart.dartk.expect

Issue 2631613003: Add Fasta tests. (Closed)
Patch Set: Address review comments. 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/fibonacci.dart ('k') | pkg/fasta/test/fibonacci.dart.direct.expect » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fasta/test/fibonacci.dart.dartk.expect
diff --git a/pkg/fasta/test/fibonacci.dart.dartk.expect b/pkg/fasta/test/fibonacci.dart.dartk.expect
new file mode 100644
index 0000000000000000000000000000000000000000..c46429ad5af2e8591ad763458d4208472caf05c3
--- /dev/null
+++ b/pkg/fasta/test/fibonacci.dart.dartk.expect
@@ -0,0 +1,14 @@
+library;
+import self as self;
+import "dart:core" as core;
+
+static method fibonacci(core::int n) → core::int {
+ if(n.<(2))
+ return n;
+ return self::fibonacci(n.-(1)).+(self::fibonacci(n.-(2)));
+}
+static method main() → dynamic {
+ for (core::int i = 0; i.<(20); i = i.+(1)) {
+ core::print(self::fibonacci(i));
+ }
+}
« no previous file with comments | « pkg/fasta/test/fibonacci.dart ('k') | pkg/fasta/test/fibonacci.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698