org.antlr.test
Class TestTrees
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.antlr.test.BaseTest
org.antlr.test.TestTrees
- All Implemented Interfaces:
- junit.framework.Test
public class TestTrees
- extends BaseTest
Field Summary |
protected boolean |
debug
|
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 |
debug
protected boolean debug
TestTrees
public TestTrees()
testSingleNode
public void testSingleNode()
throws java.lang.Exception
- Throws:
java.lang.Exception
testTwoChildrenOfNilRoot
public void testTwoChildrenOfNilRoot()
throws java.lang.Exception
- Throws:
java.lang.Exception
test4Nodes
public void test4Nodes()
throws java.lang.Exception
- Throws:
java.lang.Exception
testList
public void testList()
throws java.lang.Exception
- Throws:
java.lang.Exception
testList2
public void testList2()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAddListToExistChildren
public void testAddListToExistChildren()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDupTree
public void testDupTree()
throws java.lang.Exception
- Throws:
java.lang.Exception
testBecomeRoot
public void testBecomeRoot()
throws java.lang.Exception
- Throws:
java.lang.Exception
testBecomeRoot2
public void testBecomeRoot2()
throws java.lang.Exception
- Throws:
java.lang.Exception
testBecomeRoot3
public void testBecomeRoot3()
throws java.lang.Exception
- Throws:
java.lang.Exception
testBecomeRoot5
public void testBecomeRoot5()
throws java.lang.Exception
- Throws:
java.lang.Exception
testBecomeRoot6
public void testBecomeRoot6()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplaceWithNoChildren
public void testReplaceWithNoChildren()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplaceWithOneChildren
public void testReplaceWithOneChildren()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplaceInMiddle
public void testReplaceInMiddle()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplaceAtLeft
public void testReplaceAtLeft()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplaceAtRight
public void testReplaceAtRight()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplaceOneWithTwoAtLeft
public void testReplaceOneWithTwoAtLeft()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplaceOneWithTwoAtRight
public void testReplaceOneWithTwoAtRight()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplaceOneWithTwoInMiddle
public void testReplaceOneWithTwoInMiddle()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplaceTwoWithOneAtLeft
public void testReplaceTwoWithOneAtLeft()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplaceTwoWithOneAtRight
public void testReplaceTwoWithOneAtRight()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplaceAllWithOne
public void testReplaceAllWithOne()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplaceAllWithTwo
public void testReplaceAllWithTwo()
throws java.lang.Exception
- Throws:
java.lang.Exception