Changeset 59
- Timestamp:
- 01/02/07 14:10:47 (2 years ago)
- Files:
-
- lex/trunk/test/com/qwirx/lex/ParserTest.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lex/trunk/test/com/qwirx/lex/ParserTest.java
r55 r59 414 414 absolute, copyNothing), 415 415 }; 416 416 417 Parser p = new Parser(rules); 417 418 418 List results = p.parseFor("TWLDWT/ H CMJM/ W H >RY/", "NP"); 419 419 assertEquals(2, results.size()); … … 425 425 } 426 426 427 Edge NP_all = (Edge)(results.get( 1));427 Edge NP_all = (Edge)(results.get(0)); 428 428 assertEquals("NP", NP_all.symbol()); 429 429 assertEquals("absolute", NP_all.attribute("state")); … … 438 438 assertEquals("NP", NP_heavens_and_earth.symbol()); 439 439 assertEquals("absolute", NP_heavens_and_earth.attribute("state")); 440 441 assertEquals("X", NP_heavens_and_earth.partName(0)); 440 assertEquals("X", NP_heavens_and_earth.partName(0)); 441 442 442 Edge NP_heavens = NP_heavens_and_earth.part(0); 443 443 assertEquals("NP", NP_heavens.symbol());
