Class TokenizerTest
java.lang.Object
com.singularsys.jeptests.unit.configurableparser.TokenizerTest
Tests for the tokenizer.
-
Field Summary
Fields -
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()voidvoidvoidvoidtestIt()voidtestItN()voidvoidvoidvoidtestScan()voidvoidvoidTests individual tokensvoid
-
Field Details
-
PRINT_RESULTS
public static final boolean PRINT_RESULTS
-
-
Constructor Details
-
TokenizerTest
public TokenizerTest()
-
-
Method Details
-
checkIdentifier
-
checkNumber
-
checkString
-
checkComment
-
checkWhiteSpace
-
checkOperator
-
check
-
check
- Throws:
ParseException
-
check
- Throws:
ParseException
-
setUp
@BeforeEach public void setUp() -
testTokens
Tests individual tokens- Throws:
ParseException
-
testScan
- Throws:
ParseException
-
testIt
@Test public void testIt() -
testItN
@Test public 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
-