Class Utilities


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

      • Utilities

        public Utilities()
    • Method Detail

      • testUnary

        public static void testUnary​(PostfixMathCommand pfmc,
                                     double arg,
                                     double expected)
        Utility method for testing unary methods
        Parameters:
        pfmc -
        arg -
        expected -
      • testBinary

        public static void testBinary​(PostfixMathCommand pfmc,
                                      double l,
                                      double r,
                                      double expected)
      • testBDBinary

        public static void testBDBinary​(PostfixMathCommand pfmc,
                                        double l,
                                        double r,
                                        java.lang.String string)
      • testBinary

        public static void testBinary​(PostfixMathCommand pfmc,
                                      java.lang.Object l,
                                      java.lang.Object r,
                                      java.lang.Object expected)
      • testUnary

        public static void testUnary​(PostfixMathCommand pfmc,
                                     java.lang.Object l,
                                     java.lang.Object expected)
      • testBDUnary

        public static void testBDUnary​(PostfixMathCommand pfmc,
                                       double l,
                                       java.lang.String string)