Class ExpressionTest

java.lang.Object
  |
  +--ExpressionTest

public class ExpressionTest
extends java.lang.Object

This is a driver program to test the ArithmeticEquation class.


Field Summary
protected static ArithmeticEquation e
           
 
Constructor Summary
ExpressionTest()
           
 
Method Summary
static void groupingSymbolOne()
           
static void groupingSymbolTwo()
           
static void main(java.lang.String[] agrs)
           
static void multipleDigitTest()
          Checks to see if an arithmetic equation can be created with multiple numeric digits.
static void operatorComboFour()
          Tests multiples of different operators where the correct solution is only found by using the order of operations
static void operatorComboOne()
          Tests the combination of multiples of the same operator
static void operatorComboThree()
          Tests multiples of different operators where the correct solution is found by simply solving left to right
static void operatorComboTwo()
          Tests multiples of operators with the same precedence
static void simpleAdditionTest()
          Does a simple addition
static void simpleDivisionTest()
          Does a simple division
static void simpleMultiplicationTest()
          Does a simple multiplication
static void simpleNegationTest()
          Does a simple negation
static void simpleSubtractionTest()
          Does a simple subtraction
static void singleDigitTest()
          Checks to see if an arithmetic equation can be created with a single numeric digit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

e

protected static ArithmeticEquation e
Constructor Detail

ExpressionTest

public ExpressionTest()
Method Detail

main

public static void main(java.lang.String[] agrs)

singleDigitTest

public static void singleDigitTest()
Checks to see if an arithmetic equation can be created with a single numeric digit.

multipleDigitTest

public static void multipleDigitTest()
Checks to see if an arithmetic equation can be created with multiple numeric digits.

simpleAdditionTest

public static void simpleAdditionTest()
Does a simple addition

simpleSubtractionTest

public static void simpleSubtractionTest()
Does a simple subtraction

simpleMultiplicationTest

public static void simpleMultiplicationTest()
Does a simple multiplication

simpleDivisionTest

public static void simpleDivisionTest()
Does a simple division

simpleNegationTest

public static void simpleNegationTest()
Does a simple negation

operatorComboOne

public static void operatorComboOne()
Tests the combination of multiples of the same operator

operatorComboTwo

public static void operatorComboTwo()
Tests multiples of operators with the same precedence

operatorComboThree

public static void operatorComboThree()
Tests multiples of different operators where the correct solution is found by simply solving left to right

operatorComboFour

public static void operatorComboFour()
Tests multiples of different operators where the correct solution is only found by using the order of operations

groupingSymbolOne

public static void groupingSymbolOne()

groupingSymbolTwo

public static void groupingSymbolTwo()