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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 library;
2 import self as self;
3 import "dart:core" as core;
4
5 static method fibonacci(core::int n) → core::int {
6 if(n.<(2))
7 return n;
8 return self::fibonacci(n.-(1)).+(self::fibonacci(n.-(2)));
9 }
10 static method main() → dynamic {
11 for (core::int i = 0; i.<(20); i = i.+(1)) {
12 core::print(self::fibonacci(i));
13 }
14 }
OLDNEW
« 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