Move PEG parser test into testing framework.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8448006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1177 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
sra@google.com 2011-11-03 23:24:33 +00:00
parent 6bf6848498
commit 25e8752353
3 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,8 @@
# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
prefix peg
[ $component == dartc ]
PegTest: Skip # Undiagnosed error on "a ? b ? c : d : e ? f : g"

View file

@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#import('pegparser.dart');
#import('../../../peg/pegparser.dart');
testParens() {
Grammar g = new Grammar();
@ -318,7 +318,7 @@ void check(grammar, rule, input, expected) {
}
// Prints the list in [1,2,3] notation, including nested lists.
void printList(item) {
printList(item) {
if (item is List) {
StringBuffer sb = new StringBuffer();
sb.add('[');

View file

@ -0,0 +1,8 @@
# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
from testing import test_configuration
def GetConfiguration(context, root):
return test_configuration.StandardTestConfiguration(context, root)