Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 36 lines (28 sloc) 1.131 kB
05eedb5 @itod initial add
authored
1 // Copyright 2010 Todd Ditchendorf
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 #import "SAXTest.h"
16
17 @implementation SAXTest
18
19 - (void)setUp {
20 NSString *path = [[NSBundle bundleForClass:[self class]] pathForResource:@"xml" ofType:@"grammar"];
21 g = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
22 factory = [PKParserFactory factory];
eb778c5 @itod merging changes from Google Code SVN repo
authored
23 p = [factory parserFromGrammar:g assembler:self error:nil];
05eedb5 @itod initial add
authored
24 t = p.tokenizer;
25 }
26
27
28 - (void)testSTag {
e7e1984 @itod merging from SVN - new AST-based Factory
authored
29 PKParser *sTag = [p parserNamed:@"sTag"];
30 TDNotNil(sTag);
31 TDTrue([sTag isKindOfClass:[PKParser class]]);
05eedb5 @itod initial add
authored
32
33 }
34
35 @end
Something went wrong with that request. Please try again.