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

Side by Side Diff: utils/tests/peg/peg_tests.dart

Issue 9956037: Simplify tests under utils/tests to follow StandardTestSuite convention. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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('../../../peg/pegparser.dart'); 5 #import('../../peg/pegparser.dart');
6 6
7 testParens() { 7 testParens() {
8 Grammar g = new Grammar(); 8 Grammar g = new Grammar();
9 Symbol a = g['A']; 9 Symbol a = g['A'];
10 10
11 a.def = ['(', MANY(a, min:0), ')', (a) => a]; 11 a.def = ['(', MANY(a, min:0), ')', (a) => a];
12 12
13 check(g, a, "", null); 13 check(g, a, "", null);
14 check(g, a, "()", '[]'); 14 check(g, a, "()", '[]');
15 check(g, a, "(()())", '[[],[]]'); 15 check(g, a, "(()())", '[[],[]]');
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 337 }
338 338
339 main() { 339 main() {
340 testCODE(); 340 testCODE();
341 testParens(); 341 testParens();
342 testOR(); 342 testOR();
343 testTEXT(); 343 testTEXT();
344 testBlockComment(); 344 testBlockComment();
345 testC(); 345 testC();
346 } 346 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698