Package com.singularsys.jeptests.unit
Class TokenizerTest
java.lang.Object
com.singularsys.jeptests.unit.TokenizerTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTests operators with alphabet characters, such as the "OR" operatorvoidvoidvoidvoidcheckComment(Token expected, Token actual) voidcheckIdentifier(Token expected, Token actual) voidcheckNumber(Token expected, Token actual) voidcheckOperator(Token expected, Token actual) voidcheckString(Token expected, Token actual) voidcheckWhiteSpace(Token expected, Token actual) voidprintTokenList(List<Token> tokens) voidsetUp()voidvoidvoidfinal voidtestIt()final voidtestItN()voidvoidvoidfinal voidtestScan()voidvoidfinal voidTests 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
-