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

Side by Side Diff: pkg/front_end/testcases/rasta/issue_000004.dart.direct.expect

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 library; 1 library;
2 import self as self; 2 import self as self;
3 import "package:expect/expect.dart" as exp; 3 import "package:expect/expect.dart" as exp;
4 4
5 static field dynamic global; 5 static field dynamic global;
6 static method fact4() → dynamic { 6 static method fact4() → dynamic {
7 dynamic f = 1; 7 dynamic f = 1;
8 for (dynamic n in <dynamic>[1, 2, 3, 4]) { 8 for (dynamic n in <dynamic>[1, 2, 3, 4]) {
9 f = f.*(n); 9 f = f.*(n);
10 } 10 }
(...skipping 14 matching lines...) Expand all
25 self::global = #t2; 25 self::global = #t2;
26 f = f.*(self::global); 26 f = f.*(self::global);
27 } 27 }
28 return f; 28 return f;
29 } 29 }
30 static method main() → dynamic { 30 static method main() → dynamic {
31 exp::Expect::isTrue(self::fact4().==(24)); 31 exp::Expect::isTrue(self::fact4().==(24));
32 exp::Expect::isTrue(self::fact5().==(120)); 32 exp::Expect::isTrue(self::fact5().==(120));
33 exp::Expect::isTrue(self::fact6().==(720)); 33 exp::Expect::isTrue(self::fact6().==(720));
34 } 34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698