| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:fletch'; | 5 import 'dart:dartino'; |
| 6 | 6 |
| 7 import 'package:isolate/process_runner.dart'; | 7 import 'package:isolate/process_runner.dart'; |
| 8 import 'package:expect/expect.dart'; | 8 import 'package:expect/expect.dart'; |
| 9 | 9 |
| 10 main() { | 10 main() { |
| 11 test(10, 0); | 11 test(10, 0); |
| 12 test(10, 1); | 12 test(10, 1); |
| 13 test(10, 9); | 13 test(10, 9); |
| 14 test(10, 10); | 14 test(10, 10); |
| 15 } | 15 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 // Ensure we got an exception if there were any failures. | 40 // Ensure we got an exception if there were any failures. |
| 41 if (failures == 0) { | 41 if (failures == 0) { |
| 42 Expect.isNull(exception); | 42 Expect.isNull(exception); |
| 43 } else { | 43 } else { |
| 44 Expect.equals( | 44 Expect.equals( |
| 45 'Exception: $failures out of $total processes did not terminate ' | 45 'Exception: $failures out of $total processes did not terminate ' |
| 46 'normally.', exception.toString()); | 46 'normally.', exception.toString()); |
| 47 } | 47 } |
| 48 } | 48 } |
| OLD | NEW |