Changeset 59

Show
Ignore:
Timestamp:
01/02/07 14:10:47 (2 years ago)
Author:
chris
Message:

- Order of results has changed with latest parser changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lex/trunk/test/com/qwirx/lex/ParserTest.java

    r55 r59  
    414414                                                absolute, copyNothing), 
    415415                }; 
     416         
    416417                Parser p = new Parser(rules); 
    417                  
    418418                List results = p.parseFor("TWLDWT/ H CMJM/ W H >RY/", "NP"); 
    419419                assertEquals(2, results.size()); 
     
    425425                } 
    426426                 
    427                 Edge NP_all = (Edge)(results.get(1)); 
     427                Edge NP_all = (Edge)(results.get(0)); 
    428428                assertEquals("NP",       NP_all.symbol()); 
    429429                assertEquals("absolute", NP_all.attribute("state")); 
     
    438438                assertEquals("NP",       NP_heavens_and_earth.symbol()); 
    439439                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         
    442442                Edge NP_heavens = NP_heavens_and_earth.part(0); 
    443443                assertEquals("NP",       NP_heavens.symbol());