Package com.singularsys.jeptests.unit
Class TokenizerTest
- java.lang.Object
-
- com.singularsys.jeptests.unit.TokenizerTest
-
public class TokenizerTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TokenizerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
alphabeticOpsTest()
Tests operators with alphabet characters, such as the "OR" operatorvoid
check(java.lang.String str, java.lang.String[] expected)
void
check(java.util.List<Token> tokens, java.lang.Object[] expected)
void
check(java.util.List<Token> tokens, java.util.List<Token> expected)
void
checkComment(Token expected, Token actual)
void
checkIdentifier(Token expected, Token actual)
void
checkNumber(Token expected, Token actual)
void
checkOperator(Token expected, Token actual)
void
checkString(Token expected, Token actual)
void
checkWhiteSpace(Token expected, Token actual)
void
printTokenList(java.util.List<Token> tokens)
void
setUp()
void
testAltSymbols()
void
testEmptyEquations()
void
testExtended()
void
testIt()
void
testItN()
void
testLineNumbers()
void
testMultiLineComments()
void
testMultiLineWhiteSpace()
void
testScan()
void
testSemiColon()
void
testSemiColon2()
void
testTokens()
Tests individual tokensvoid
testTwoString()
-
-
-
Method Detail
-
check
public void check(java.util.List<Token> tokens, java.lang.Object[] expected) throws ParseException
- Throws:
ParseException
-
check
public void check(java.lang.String str, java.lang.String[] expected) throws ParseException
- Throws:
ParseException
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testTokens
public final void testTokens() throws ParseException
Tests individual tokens- Throws:
ParseException
-
testScan
public final void testScan() throws ParseException
- Throws:
ParseException
-
testIt
public final void testIt()
-
testItN
public final void testItN()
-
testMultiLineComments
public void testMultiLineComments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testMultiLineWhiteSpace
public void testMultiLineWhiteSpace() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSemiColon
public void testSemiColon() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSemiColon2
public void testSemiColon2() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testExtended
public void testExtended() throws java.lang.Exception
- Throws:
java.lang.Exception
-
alphabeticOpsTest
public void alphabeticOpsTest() throws java.lang.Exception
Tests operators with alphabet characters, such as the "OR" operator- Throws:
java.lang.Exception
-
printTokenList
public void printTokenList(java.util.List<Token> tokens)
-
testTwoString
public void testTwoString() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testEmptyEquations
public void testEmptyEquations() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testLineNumbers
public void testLineNumbers() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAltSymbols
public void testAltSymbols() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-