Searched refs:testCase (Results 1 - 25 of 28) sorted by relevance

12

/openjdk7/jdk/test/java/math/BigDecimal/
H A DToPlainStringTests.java73 for(String[] testCase: testCases) {
74 BigDecimal bd = new BigDecimal(testCase[0]);
77 if (!(s=bd.toPlainString()).equals(testCase[1])) {
83 bd = new BigDecimal("-"+testCase[0]);
84 if (bd.signum()!=0 && !(s=(bd.toPlainString())).equals("-"+testCase[1])) {
H A DPowTests.java59 for(BigDecimal[] testCase: testCases) {
60 int exponent = testCase[1].intValueExact();
64 result = testCase[0].pow(exponent);
65 if (!result.equals(testCase[2]) ) {
68 testCase[0] +
70 testCase[2] + ", got " + result + ".");
73 if (testCase[2] != null) {
75 System.err.println("Unexpected exception while raising " + testCase[0] +
H A DCompareToTests.java64 for (BigDecimal[] testCase : testCases) {
65 BigDecimal a = testCase[0];
67 BigDecimal b = testCase[1];
69 int expected = testCase[2].intValue();
H A DNegateTests.java48 for (BigDecimal [] testCase : testCases) {
50 BigDecimal bd = testCase[0];
53 BigDecimal expected = testCase[1];
H A DIntegralDivisionTests.java52 for(BigDecimal [] testCase: moreTestCases) {
54 if (! (quotient=testCase[0].divideToIntegralValue(testCase[1])).equals(testCase[2]) ){
56 // BigDecimal exact = testCase[0].divide(testCase[1]);
58 System.err.println("dividend = " + testCase[0] + " scale = " + testCase[0].scale());
59 System.err.println("divisor = " + testCase[1] + " scale = " + testCase[
[all...]
H A DZeroScalingTests.java413 for(String[] testCase: testCases) {
414 BigDecimal bd = new BigDecimal(testCase[0]);
417 if (!result.equals(testCase[1]) ||
420 System.err.println("From input ``" + testCase[0] + ",'' " +
422 "''; expected ``" + testCase[1] + ".''");
/openjdk7/jdk/test/java/lang/Math/
H A DAtan2Tests.java51 for (double[] testCase : testCases) {
52 failures+=testAtan2Case(testCase[0], testCase[1], testCase[2]);
H A DRoundTests.java55 for(double[] testCase : testCases) {
56 failures += testNearHalfCases(testCase[0], (long)testCase[1]);
83 for(float[] testCase : testCases) {
84 failures += testNearHalfCases(testCase[0], (int)testCase[1]);
H A DHyperbolicTests.java235 double [] testCase = testCases[i];
236 failures += testSinhCaseWithUlpDiff(testCase[0],
237 testCase[1],
594 double [] testCase = testCases[i];
595 failures += testCoshCaseWithUlpDiff(testCase[0],
596 testCase[1],
952 double [] testCase = testCases[i];
953 failures += testTanhCaseWithUlpDiff(testCase[0],
954 testCase[1],
H A DCeilAndFloorTests.java182 for(double[] testCase : testCases) {
183 failures += testCeilCase(testCase[0], testCase[1]);
184 failures += testFloorCase(-testCase[0], -testCase[1]);
H A DPowTests.java73 for (double[] testCase : testCases) {
74 failures+=testPowCase(testCase[0], testCase[1], testCase[2]);
H A DTanTests.java169 for(double[] testCase: testCases) {
170 failures += testTanCase(testCase[0], testCase[1], testCase[2]);
H A DLog10Tests.java91 double testCase = 1.0;
93 failures += testLog10Case(testCase, i);
94 testCase *= 10.0;
/openjdk7/jdk/test/sun/net/idn/
H A DTestStringPrep.java164 TestData.ConformanceTestCase testCase = TestData.conformanceTestCases[i];
165 String src = testCase.input;
166 Exception expected = testCase.expected;
167 String expectedDest = testCase.output;
238 TestData.ConformanceTestCase testCase = TestData.conformanceTestCases[i];
240 UCharacterIterator iter = UCharacterIterator.getInstance(testCase.input);
241 StringBuffer output = namePrep.prepare(iter, testCase.flags);
242 if(testCase.output !=null && output!=null && !testCase.output.equals(output.toString())){
243 fail("Did not get the expected output. Expected: " + prettify(testCase
[all...]
/openjdk7/jdk/test/java/security/cert/pkix/policyChanges/
H A DTestPolicy.java92 TestCase testCase = TEST_CASES[i];
93 System.out.println("*** Running test: " + testCase);
98 params.setInitialPolicies(testCase.initialPolicies);
108 if (resultTree.equals(testCase.resultTree) == false) {
110 System.out.println("Should: " + testCase.resultTree);
112 throw new Exception("Test failed: " + testCase);
/openjdk7/jdk/test/java/math/BigInteger/
H A DCompareToTests.java64 for (BigDecimal[] testCase : testCases) {
65 BigDecimal a = testCase[0];
67 BigDecimal b = testCase[1];
69 int expected = testCase[2].intValue();
/openjdk7/jdk/test/javax/management/monitor/
H A DAttributeArbitraryDataTypeTest.java225 public int counterMonitorNotification(int testCase) argument
256 switch (testCase) {
276 switch (testCase) {
315 switch (testCase) {
331 switch (testCase) {
347 switch (testCase) {
378 public int gaugeMonitorNotification(int testCase) argument
409 switch (testCase) {
429 switch (testCase) {
455 switch (testCase) {
545 stringMonitorNotification(int testCase) argument
[all...]
/openjdk7/jdk/test/java/lang/Double/
H A DParseHexFloatingPoint.java56 static int testCase(String input, double expected) { method in class:ParseHexFloatingPoint
155 failures += testCase(input, 3.0);
158 failures += testCase(input, 3.0);
182 failures += testCase("0x0.0p"+Long.toString(bigExponents[i]) , 0.0);
188 failures += testCase("0x10000.0p"+Long.toString(exponent) ,
197 failures += testCase("0x"+Long.toHexString(signif)+"p0", signif);
254 failures += testCase(testCases[i].s,testCases[i].d);
265 failures += testCase(Double.toHexString(d), d);
324 failures += testCase(s, expected);
/openjdk7/jdk/test/java/lang/StrictMath/
H A DHyperbolicTests.java150 for (double[] testCase: testCases)
151 failures+=testSinhCase(testCase[0], testCase[1]);
191 for (double[] testCase: testCases)
192 failures+=testCoshCase(testCase[0], testCase[1]);
260 for (double[] testCase: testCases)
261 failures+=testTanhCase(testCase[0], testCase[1]);
H A DLog1pTests.java193 for (double[] testCase: testCases)
194 failures+=testLog1pCase(testCase[0], testCase[1]);
H A DCubeRootTests.java455 for(double[] testCase: testCases)
456 failures+=testCubeRootCase(testCase[0], testCase[1]);
/openjdk7/jdk/test/com/sun/jdi/
H A DVars.java91 String testCase(Method method, int which) { method in class:Vars
127 String got = testCase(method, which);
138 String got = testCase(method, which);
H A DFinalLocalsTest.java101 String got = testCase(method, which);
132 String testCase(Method method, int which) { method in class:FinalLocalsTest
/openjdk7/jdk/test/java/awt/event/MouseEvent/SpuriousExitEnter/
H A DSpuriousExitEnter_3.java66 public static void testCase(Window w, Component comp) { method in class:SpuriousExitEnter_3
123 testCase(frame, jbutton);
125 testCase(frame1, button1);
/openjdk7/jdk/test/sun/management/jmxremote/bootstrap/
H A DJvmstatCountersTest.java77 final int testCase = Integer.parseInt(args[0]);
78 switch (testCase) {

Completed in 80 milliseconds

12