OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library testrunner_test; | 5 library testrunner_test; |
6 | 6 |
7 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
8 | 8 |
9 foo(bool x) => x; | 9 foo(bool x) => x; |
10 | 10 |
11 main() { | 11 main() { |
12 group('group1', () { | 12 group('group1', () { |
13 test('test1', () { | 13 test('test1', () { |
14 expect(true, isFalse); | 14 expect(true, isFalse); |
15 }); | 15 }); |
16 }); | 16 }); |
17 group('group2', () { | 17 group('group2', () { |
18 test('test2', () { | 18 test('test2', () { |
19 foo(3); | 19 foo(3); |
20 expect(true, isTrue); | 20 expect(true, isTrue); |
21 }); | 21 }); |
22 }); | 22 }); |
23 } | 23 } |
24 | |
OLD | NEW |