Class TokenizerTest


  • public class TokenizerTest
    extends java.lang.Object
    • Constructor Detail

      • TokenizerTest

        public TokenizerTest()
    • Method Detail

      • 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​(java.util.List<Token> tokens,
                          java.util.List<Token> expected)
      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • 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