Lines Matching refs:pass
1506 UBool pass; in TestVariable() local
1507 pass = strcmp(var1.next(), value->next()) == 0; in TestVariable()
1508 pass = pass && strcmp(var2.next(), value2->next()) == 0; in TestVariable()
1509 pass = pass && strcmp(var3.next(), value3->next()) == 0; in TestVariable()
1510 return pass; in TestVariable()
1522 UBool pass; in TestSymbolTable() local
1523 pass = t.find(NULL) == SymbolTable::EMPTY; in TestSymbolTable()
1524 pass = pass && t.find("ccc") == SymbolTable::NO_VAR; in TestSymbolTable()
1525 pass = pass && t.find("bbb") == SymbolTable::NO_REF; in TestSymbolTable()
1526 pass = pass && t.find("abc") == SymbolTable::HAS_REF; in TestSymbolTable()
1527 pass = pass && t.find("$aaa") == SymbolTable::HAS_REF; in TestSymbolTable()
1530 pass = pass && t.find("abc") == SymbolTable::NO_VAR; in TestSymbolTable()
1531 return pass; in TestSymbolTable()
1548 UBool pass = TRUE; in TestScanner() local
1551 while (pass){ in TestScanner()
1553 pass = pass? i == tokenNum : FALSE; in TestScanner()
1556 pass = FALSE; in TestScanner()
1559 pass = strcmp( &(t.token[0]), str_r[i++]) == 0; in TestScanner()
1584 return pass; in TestScanner()
1607 UBool pass = TRUE; in TestParser() local
1608 pass = pass && test ("$s = ' ' ? 50%;"); in TestParser()
1609 pass = pass && test("$x = ($var {1,2}) 3%;"); // legal in TestParser()
1610 pass = pass && test("$x = $var {1,2} 3% | b 4%;"); // legal in TestParser()
1611 pass = pass && test("$x = $var {1,2} 3%;"); // legal in TestParser()
1612 pass = pass && test("$m = $c ? 2% 4% | $r 5% | $n 25%;"); // legal in TestParser()
1613 pass = pass && test("$a = b ? 2% | c 5%;"); // legal in TestParser()
1614 pass = pass && test("$x = A B 5% C 10% | D;", 8, FALSE); // illegal 5% in TestParser()
1615 pass = pass && test("$x = aa 45% | bb 5% cc;", 19, FALSE);// illegal cc in TestParser()
1616 pass = pass && test("$x = (b 5%) (c 6%);"); // legal in TestParser()
1617 pass = pass && test("$x = (b 5%) c 6%;", 13, FALSE); // illegal 6% in TestParser()
1618 pass = pass && test("$x = b 5% (c 6%);", 9, FALSE); // illegal (c 6%) in TestParser()
1619 pass = pass && test("$x = b 5% c 6%;", 9, FALSE); // illegal c 6% in TestParser()
1620 pass = pass && test("$x = b 5%;"); // legal in TestParser()
1621 pass = pass && test("$x = aa 45% | bb 5% cc;", 19, FALSE);// illegal cc in TestParser()
1622 pass = pass && test("$x = a | b | c 4% | d 5%;"); // legal in TestParser()
1623 pass = pass && test("$s = ' ' ? 50% abc;"); // legal in TestParser()
1624 pass = pass && test("$s = a | c d | e f;"); // legal in TestParser()
1625 pass = pass && test( "$z = q 0% | p 1% | r 100%;"); // legal How to check parsed tree?? in TestParser()
1627 pass = pass && test("$s = ' ' ? 50%;"); in TestParser()
1628 pass = pass && test("$relationList = '<' | '<<' | ';' | '<<<' | ',' | '=';"); in TestParser()
1629 pass = pass && test("$p1 = ($string $s '|' $s)? 25%;"); in TestParser()
1630 pass = pass && test("$p2 = (\\\\ $s $string $s)? 25%;"); in TestParser()
1631 pass = pass && test("$rel2 = $p1 $string $s $p2;"); in TestParser()
1632 pass = pass && test("$relation = $relationList $s ($rel1 | $rel2) $crlf;"); in TestParser()
1633 pass = pass && test("$command = $commandList $crlf;"); in TestParser()
1634 …pass = pass && test("$reset = '&' $s ($beforeList $s)? 10% ($positionList 100% | $string 10%) $crl… in TestParser()
1635 pass = pass && test("$mostRules = $command 1% | $reset 5% | $relation 25%;"); in TestParser()
1636 pass = pass && test("$root = $command{0,5} $reset $mostRules{1,20};"); in TestParser()
1683 pass = pass && test(collationBNF); in TestParser()
1686 return pass; in TestParser()
1717 UBool pass; in TestLanguageGenerator() local
1733 pass = g.parseBNF(def, "$x",TRUE); in TestLanguageGenerator()
1736 if (pass != LanguageGenerator::OK) return FALSE; in TestLanguageGenerator()
1739 return pass; in TestLanguageGenerator()