java.lang.Object
com.singularsys.jeptests.unit.configurableparser.TokenizerTest

public class TokenizerTest extends Object
Tests for the tokenizer.
  • Field Details

  • Constructor Details

    • TokenizerTest

      public TokenizerTest()
  • Method Details

    • checkIdentifier

      public void checkIdentifier(Token expected, Token actual)
    • checkNumber

      public void checkNumber(Token expected, Token actual)
    • checkString

      public void checkString(Token expected, Token actual)
    • checkComment

      public void checkComment(Token expected, Token actual)
    • checkWhiteSpace

      public void checkWhiteSpace(Token expected, Token actual)
    • checkOperator

      public void checkOperator(Token expected, Token actual)
    • check

      public void check(List<Token> tokens, List<Token> expected)
    • check

      public void check(List<Token> tokens, Object[] expected) throws ParseException
      Throws:
      ParseException
    • check

      public void check(String str, String[] expected) throws ParseException
      Throws:
      ParseException
    • setUp

      @BeforeEach public void setUp()
    • testTokens

      @Test public void testTokens() throws ParseException
      Tests individual tokens
      Throws:
      ParseException
    • testScan

      @Test public void testScan() throws ParseException
      Throws:
      ParseException
    • testIt

      @Test public void testIt()
    • testItN

      @Test public void testItN()
    • testMultiLineComments

      @Test public void testMultiLineComments() throws Exception
      Throws:
      Exception
    • testMultiLineWhiteSpace

      @Test public void testMultiLineWhiteSpace() throws Exception
      Throws:
      Exception
    • testSemiColon

      @Test public void testSemiColon() throws Exception
      Throws:
      Exception
    • testSemiColon2

      @Test public void testSemiColon2() throws Exception
      Throws:
      Exception
    • testExtended

      @Test public void testExtended() throws Exception
      Throws:
      Exception
    • alphabeticOpsTest

      @Test public void alphabeticOpsTest() throws Exception
      Tests operators with alphabet characters, such as the "OR" operator
      Throws:
      Exception
    • printTokenList

      public void printTokenList(List<Token> tokens)
    • testTwoString

      @Test public void testTwoString() throws Exception
      Throws:
      Exception
    • testEmptyEquations

      @Test public void testEmptyEquations() throws Exception
      Throws:
      Exception
    • testLineNumbers

      @Test public void testLineNumbers() throws Exception
      Throws:
      Exception
    • testAltSymbols

      @Test public void testAltSymbols() throws Exception
      Throws:
      Exception