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