OLD | NEW |
1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'dart:fletch'; | 5 import 'dart:dartino'; |
6 | 6 |
7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
8 | 8 |
9 main() { | 9 main() { |
10 test(0, 0); | 10 test(0, 0); |
11 | 11 |
12 test(0, 5); | 12 test(0, 5); |
13 test(3, 5); | 13 test(3, 5); |
14 | 14 |
15 test(5, 0); | 15 test(5, 0); |
(...skipping 29 matching lines...) Expand all Loading... |
45 } else { | 45 } else { |
46 Expect.isTrue(yLeft == 0 || i.isOdd); | 46 Expect.isTrue(yLeft == 0 || i.isOdd); |
47 Expect.equals("x", result[i]); | 47 Expect.equals("x", result[i]); |
48 xLeft--; | 48 xLeft--; |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 Expect.equals(0, xLeft); | 52 Expect.equals(0, xLeft); |
53 Expect.equals(0, yLeft); | 53 Expect.equals(0, yLeft); |
54 } | 54 } |
OLD | NEW |