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

Side by Side Diff: tests/language/generic_syntax_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "package:expect/expect.dart";
6
5 // Dart test verifying that the parser does not confuse parameterized types with 7 // Dart test verifying that the parser does not confuse parameterized types with
6 // boolean expressions, since both contain '<'. 8 // boolean expressions, since both contain '<'.
7 9
8 class GenericSyntaxTest<B, C, D, E, F> { 10 class GenericSyntaxTest<B, C, D, E, F> {
9 GenericSyntaxTest() {} 11 GenericSyntaxTest() {}
10 12
11 void foo(x1, x2, x3, x4, x5) { 13 void foo(x1, x2, x3, x4, x5) {
12 Expect.equals(true, x1); 14 Expect.equals(true, x1);
13 Expect.equals(3, x2); 15 Expect.equals(3, x2);
14 Expect.equals(4, x3); 16 Expect.equals(4, x3);
(...skipping 22 matching lines...) Expand all
37 new GenericSyntaxTest().test(); 39 new GenericSyntaxTest().test();
38 } 40 }
39 } 41 }
40 42
41 abstract class A<B, C, D, E, F> { 43 abstract class A<B, C, D, E, F> {
42 } 44 }
43 45
44 main() { 46 main() {
45 GenericSyntaxTest.testMain(); 47 GenericSyntaxTest.testMain();
46 } 48 }
OLDNEW
« no previous file with comments | « tests/language/generic_parameterized_extends_test.dart ('k') | tests/language/generic_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698