org.antlr.test
Class TestDFAMatching

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

public class TestDFAMatching
extends BaseTest


Nested Class Summary
 
Nested classes/interfaces inherited from class org.antlr.test.BaseTest
BaseTest.StreamVacuum
 
Field Summary
 
Fields inherited from class org.antlr.test.BaseTest
CLASSPATH, jikes, pathSep, stderr, tmpdir
 
Constructor Summary
TestDFAMatching()
          Public default constructor used by TestRig
 
Method Summary
protected  void checkPrediction(DFA dfa, java.lang.String input, int expected)
           
 void testFiniteCommonLeftPrefixes()
           
 void testSets()
           
 void testSimpleAltCharTest()
           
 void testSimpleLoops()
           
 
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
 

Constructor Detail

TestDFAMatching

public TestDFAMatching()
Public default constructor used by TestRig

Method Detail

testSimpleAltCharTest

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

testSets

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

testFiniteCommonLeftPrefixes

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

testSimpleLoops

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

checkPrediction

protected void checkPrediction(DFA dfa,
                               java.lang.String input,
                               int expected)
                        throws java.lang.Exception
Throws:
java.lang.Exception