• Home
  • Raw
  • Download

Lines Matching full:failed

72         check(one.signum() == 1, "signum(1) failed");  in testCR()
73 check(one.negate().signum() == -1, "signum(-1) failed"); in testCR()
74 check(zero.signum(-100) == 0, "signum(0) failed"); in testCR()
75 check(one.compareTo(two, -10) == -1, "comparison failed"); in testCR()
76 check(two.toString(4).compareTo("2.0000") == 0, "toString failed"); in testCR()
77 check_eq(one.shiftLeft(1),two, "shiftLeft failed"); in testCR()
78 check_eq(two.shiftRight(1),one, "shiftRight failed"); in testCR()
79 check_eq(one.add(one),two, "add failed 1"); in testCR()
80 check_eq(one.max(two),two, "max failed"); in testCR()
81 check_eq(one.min(two),one, "min failed"); in testCR()
82 check_eq(one.abs(),one, "abs failed 1"); in testCR()
83 check_eq(one.negate().abs(),one, "abs failed 2"); in testCR()
86 check_eq(CR.valueOf(4), four, "2 + 2 failed"); in testCR()
87 check_eq(CR.valueOf(3), three, "2 + 1 failed"); in testCR()
88 check_eq(one.negate().add(two), one, "negate failed"); in testCR()
89 check(one.negate().signum() == -1, "signum(-1) failed"); in testCR()
90 check_eq(two.multiply(two), four, "multiply failed"); in testCR()
91 check_eq(one.divide(four).shiftLeft(4), four, "divide failed 1"); in testCR()
92 check_eq(two.divide(one.negate()), two.negate(), "divide(neg) failed"); in testCR()
95 "divide failed 2"); in testCR()
96 check(thirteen.floatValue() == 13.0, "floatValue failed"); in testCR()
97 check(thirteen.intValue() == 13, "intValue failed"); in testCR()
98 check(thirteen.longValue() == 13, "longValue failed"); in testCR()
99 check(thirteen.doubleValue() == 13.0, "doubleValue failed"); in testCR()
100 check_eq(zero.exp(), one, "exp(0) failed"); in testCR()
104 "exp(1) failed"); in testCR()
105 check_eq(e.ln(), one, "ln(e) failed"); in testCR()
115 check_eq(half_pi.sin(), one, "sin(pi/2) failed"); in testCR()
116 check_eq(asin.execute(one),half_pi, "asin(1) failed"); in testCR()
118 half_pi.negate(), "asin(-1) failed"); in testCR()
119 check_eq(asin.execute(zero), zero, "asin(0) failed"); in testCR()
120 check_eq(asin.execute(half.sin()), half, "asin(sin(0.5)) failed"); in testCR()
123 check_eq(cosine.execute(one), one.cos(), "monotoneDerivative failed"); in testCR()
125 "monotoneDerivative failed 2"); in testCR()
126 check_eq(asin.execute(one.sin()), one, "asin(sin(1) failed"); in testCR()
127 check_eq(acos.execute(one.cos()), one, "acos(cos(1) failed"); in testCR()
128 check_eq(atan.execute(tan.execute(one)), one, "atan(tan(1) failed"); in testCR()
130 "atan(tan(-1) failed"); in testCR()
132 "tan(atan(10**15)) failed"); in testCR()
134 check_eq(sqrt13.multiply(sqrt13), thirteen, "sqrt(13)*sqrt(13) failed"); in testCR()
137 check(tmp2.ln().intValue() == -123, "intValue(...) failed"); in testCR()
138 check(tmp2.ln().longValue() == -123, "longValue(...) failed"); in testCR()
139 check(tmp2.ln().floatValue() == -123.0, "floatValue(...) failed"); in testCR()
140 check(tmp2.ln().doubleValue() == -123.0, "doubleValue(...) failed"); in testCR()
143 "sin failed at " + n); in testCR()
145 "cos failed at " + n); in testCR()
147 "exp failed at " + n); in testCR()
150 "asin failed at " + 0.1*n); in testCR()
153 "acos failed at " + 0.1*n); in testCR()
156 "ln failed at " + n); in testCR()
161 "cos failed at " + 12345678); in testCR()