String e2 = "7777777777";
assertEquals(e2, EngineeringFns.engineerBin2oct(o2, null));
}
public static void testEngineerComplex() {
Object[] o = {new Double(3), new Double(4)};
Complex e = new Complex(3, 4);
assertEquals(e, EngineeringFns.engineerComplex(o, null));
Object[] o1 = {new Double(3), new Double(4), "j"};
Complex e1 = new Complex(3, 4, "j");
assertEquals(e1, EngineeringFns.engineerComplex(o1, null));
Object[] o2 = {new Double(0), new Double(1)};
Complex e2 = new Complex(0, 1);
assertEquals(e2, EngineeringFns.engineerComplex(o2, null));
Object[] o3 = {new Double(1), new Double(0)};
Complex e3 = new Complex(1, 0);
assertEquals(e3, EngineeringFns.engineerComplex(o3, null));
}