Package com.singularsys.jeptests.unit
Class TokenizerTest
java.lang.Object
com.singularsys.jeptests.unit.TokenizerTest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Tests operators with alphabet characters, such as the "OR" operatorvoid
void
void
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
(List<Token> tokens) void
setUp()
void
void
void
final void
testIt()
final void
testItN()
void
void
void
final void
testScan()
void
void
final void
Tests individual tokensvoid
-
Constructor Details
-
TokenizerTest
public TokenizerTest()
-
-
Method Details
-
checkIdentifier
-
checkNumber
-
checkString
-
checkComment
-
checkWhiteSpace
-
checkOperator
-
check
-
check
- Throws:
ParseException
-
check
- Throws:
ParseException
-
setUp
public void setUp() -
testTokens
Tests individual tokens- Throws:
ParseException
-
testScan
- Throws:
ParseException
-
testIt
public final void testIt() -
testItN
public final void testItN() -
testMultiLineComments
- Throws:
Exception
-
testMultiLineWhiteSpace
- Throws:
Exception
-
testSemiColon
- Throws:
Exception
-
testSemiColon2
- Throws:
Exception
-
testExtended
- Throws:
Exception
-
alphabeticOpsTest
Tests operators with alphabet characters, such as the "OR" operator- Throws:
Exception
-
printTokenList
-
testTwoString
- Throws:
Exception
-
testEmptyEquations
- Throws:
Exception
-
testLineNumbers
- Throws:
Exception
-
testAltSymbols
- Throws:
Exception
-