org.antlr.test
Class TestSets

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.antlr.test.BaseTest
              extended by org.antlr.test.TestSets
All Implemented Interfaces:
junit.framework.Test

public class TestSets
extends BaseTest

Test the set stuff in lexer and parser


Nested Class Summary
 
Nested classes/interfaces inherited from class org.antlr.test.BaseTest
BaseTest.StreamVacuum
 
Field Summary
protected  boolean debug
           
 
Fields inherited from class org.antlr.test.BaseTest
CLASSPATH, jikes, pathSep, stderr, tmpdir
 
Constructor Summary
TestSets()
          Public default constructor used by TestRig
 
Method Summary
 void testLexerOptionalSet()
           
 void testLexerPlusSet()
           
 void testLexerStarSet()
           
 void testNotChar()
           
 void testNotCharSet()
           
 void testNotCharSetWithLabel()
           
 void testNotCharSetWithRuleRef()
           
 void testNotCharSetWithRuleRef2()
           
 void testNotCharSetWithRuleRef3()
           
 void testNotCharSetWithRuleRef4()
           
 void testOptionalLexerSingleElement()
           
 void testOptionalSet()
           
 void testOptionalSingleElement()
           
 void testParserNotSet()
           
 void testParserNotToken()
           
 void testParserNotTokenWithLabel()
           
 void testParserSet()
           
 void testPlusLexerSingleElement()
           
 void testPlusSet()
           
 void testRuleAsSet()
           
 void testRuleAsSetAST()
           
 void testSeqDoesNotBecomeSet()
           
 void testStarLexerSingleElement()
           
 void testStarSet()
           
 
Methods inherited from class org.antlr.test.BaseTest
antlr, checkGrammarSemanticsError, checkGrammarSemanticsWarning, compile, eraseFiles, execLexer, execParser, execTreeParser, execTreeParser, getFirstLineOfException, mkdir, newTool, newTool, rawExecRecognizer, rawGenerateAndBuildRecognizer, realElements, realElements, setUp, writeFile, writeLexerTestFile, writeTemplateTestFile, writeTestFile, writeTreeAndTreeTestFile, writeTreeTestFile
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

protected boolean debug
Constructor Detail

TestSets

public TestSets()
Public default constructor used by TestRig

Method Detail

testSeqDoesNotBecomeSet

public void testSeqDoesNotBecomeSet()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testParserSet

public void testParserSet()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testParserNotSet

public void testParserNotSet()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testParserNotToken

public void testParserNotToken()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testParserNotTokenWithLabel

public void testParserNotTokenWithLabel()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testRuleAsSet

public void testRuleAsSet()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testRuleAsSetAST

public void testRuleAsSetAST()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testNotChar

public void testNotChar()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testOptionalSingleElement

public void testOptionalSingleElement()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testOptionalLexerSingleElement

public void testOptionalLexerSingleElement()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testStarLexerSingleElement

public void testStarLexerSingleElement()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testPlusLexerSingleElement

public void testPlusLexerSingleElement()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testOptionalSet

public void testOptionalSet()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testStarSet

public void testStarSet()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testPlusSet

public void testPlusSet()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testLexerOptionalSet

public void testLexerOptionalSet()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testLexerStarSet

public void testLexerStarSet()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testLexerPlusSet

public void testLexerPlusSet()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testNotCharSet

public void testNotCharSet()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testNotCharSetWithLabel

public void testNotCharSetWithLabel()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testNotCharSetWithRuleRef

public void testNotCharSetWithRuleRef()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testNotCharSetWithRuleRef2

public void testNotCharSetWithRuleRef2()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testNotCharSetWithRuleRef3

public void testNotCharSetWithRuleRef3()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testNotCharSetWithRuleRef4

public void testNotCharSetWithRuleRef4()
                                throws java.lang.Exception
Throws:
java.lang.Exception