mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 20:21:21 +00:00
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:
parent
6bf6848498
commit
25e8752353
8
utils/tests/peg/peg.status
Normal file
8
utils/tests/peg/peg.status
Normal 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"
|
|
@ -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('[');
|
8
utils/tests/peg/testcfg.py
Normal file
8
utils/tests/peg/testcfg.py
Normal 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)
|
Loading…
Reference in a new issue