Home
last modified time | relevance | path

Searched refs:assertEquals (Results 1 – 24 of 24) sorted by relevance

/art/test/415-optimizing-arith-neg/src/
DMain.java21 public static void assertEquals(int expected, int result) { in assertEquals() method in Main
27 public static void assertEquals(long expected, long result) { in assertEquals() method in Main
33 public static void assertEquals(float expected, float result) { in assertEquals() method in Main
39 public static void assertEquals(String expected, float result) { in assertEquals() method in Main
45 public static void assertEquals(double expected, double result) { in assertEquals() method in Main
51 public static void assertEquals(String expected, double result) { in assertEquals() method in Main
81 assertEquals(-1, $opt$NegInt(1)); in negInt()
82 assertEquals(1, $opt$NegInt(-1)); in negInt()
83 assertEquals(0, $opt$NegInt(0)); in negInt()
84 assertEquals(51, $opt$NegInt(-51)); in negInt()
[all …]
/art/test/082-inline-execute/src/
DMain.java97 Assert.assertEquals(str0.length(), 0); in test_String_length()
98 Assert.assertEquals(str1.length(), 1); in test_String_length()
99 Assert.assertEquals(str80.length(), 80); in test_String_length()
130 Assert.assertEquals(testStr.length() - 1, 33); // 33 = testStr.length()-1 as a constant. in test_String_charAt()
131 Assert.assertEquals('f', testStr.charAt(33)); in test_String_charAt()
137 Assert.assertEquals(a, testStr.charAt(0)); in test_String_charAt()
138 Assert.assertEquals(b, testStr.charAt(1)); in test_String_charAt()
139 Assert.assertEquals(c, testStr.charAt(10)); in test_String_charAt()
140 Assert.assertEquals(d, testStr.charAt(testStr.length()-1)); in test_String_charAt()
161 Assert.assertEquals(testStr.length(), 12); // 12 = " is the time".length() in test_String_charAtExc()
[all …]
/art/test/412-new-array/src/
DMain.java37 assertEquals(1, a.length); in $opt$TestAllocations()
40 assertEquals(2, b.length); in $opt$TestAllocations()
43 assertEquals(3, c.length); in $opt$TestAllocations()
46 assertEquals(4, d.length); in $opt$TestAllocations()
49 assertEquals(5, e.length); in $opt$TestAllocations()
52 assertEquals(6, f.length); in $opt$TestAllocations()
55 assertEquals(7, g.length); in $opt$TestAllocations()
58 assertEquals(8, h.length); in $opt$TestAllocations()
61 assertEquals(9, i.length); in $opt$TestAllocations()
66 assertEquals(1, a.length); in $opt$TestWithInitializations()
[all …]
DTestCase.java38 public static void assertEquals(String message, int expected, int actual) { in assertEquals() method in TestCase
44 public static void assertEquals(int expected, int actual) { in assertEquals() method in TestCase
70 public static void assertEquals(Object expected, Object actual) { in assertEquals() method in TestCase
94 public static void assertEquals( in assertEquals() method in TestCase
101 public static void assertEquals( in assertEquals() method in TestCase
108 public static void assertEquals(long expected, long actual) { in assertEquals() method in TestCase
114 public static void assertEquals( in assertEquals() method in TestCase
121 public static void assertEquals(boolean expected, boolean actual) { in assertEquals() method in TestCase
127 public static void assertEquals( in assertEquals() method in TestCase
134 public static void assertEquals(float expected, float actual) { in assertEquals() method in TestCase
[all …]
/art/test/407-arrays/src/
DMain.java35 assertEquals(false, bools[0]); in $opt$testReads()
36 assertEquals(false, bools[index]); in $opt$testReads()
38 assertEquals(0, bytes[0]); in $opt$testReads()
39 assertEquals(0, bytes[index]); in $opt$testReads()
41 assertEquals(0, chars[0]); in $opt$testReads()
42 assertEquals(0, chars[index]); in $opt$testReads()
44 assertEquals(0, shorts[0]); in $opt$testReads()
45 assertEquals(0, shorts[index]); in $opt$testReads()
47 assertEquals(0, ints[0]); in $opt$testReads()
48 assertEquals(0, ints[index]); in $opt$testReads()
[all …]
DTestCase.java38 public static void assertEquals(String message, int expected, int actual) { in assertEquals() method in TestCase
44 public static void assertEquals(int expected, int actual) { in assertEquals() method in TestCase
70 public static void assertEquals(Object expected, Object actual) { in assertEquals() method in TestCase
94 public static void assertEquals( in assertEquals() method in TestCase
101 public static void assertEquals( in assertEquals() method in TestCase
108 public static void assertEquals(long expected, long actual) { in assertEquals() method in TestCase
114 public static void assertEquals( in assertEquals() method in TestCase
121 public static void assertEquals(boolean expected, boolean actual) { in assertEquals() method in TestCase
127 public static void assertEquals( in assertEquals() method in TestCase
134 public static void assertEquals(float expected, float actual) { in assertEquals() method in TestCase
[all …]
/art/test/414-static-fields/src/
DMain.java34 assertEquals(42, staticField); in $opt$TestThisClassStaticField()
38 assertEquals(41, Other.staticField); in $opt$TestOtherClassStaticField()
43 assertEquals(a + 42, a + staticField); in $opt$TestAddThisClassStaticField()
48 assertEquals(a + 41, a + Other.staticField); in $opt$TestAddOtherClassStaticField()
52 assertEquals(40, OtherWithClinit.staticField); in $opt$TestOtherClassWithClinitStaticField()
56 assertEquals(false, sZ); in $opt$TestAccess()
57 assertEquals(0, sB); in $opt$TestAccess()
58 assertEquals(0, sC); in $opt$TestAccess()
59 assertEquals(0, sI); in $opt$TestAccess()
60 assertEquals(0, sJ); in $opt$TestAccess()
[all …]
DTestCase.java38 public static void assertEquals(String message, int expected, int actual) { in assertEquals() method in TestCase
44 public static void assertEquals(int expected, int actual) { in assertEquals() method in TestCase
70 public static void assertEquals(Object expected, Object actual) { in assertEquals() method in TestCase
94 public static void assertEquals( in assertEquals() method in TestCase
101 public static void assertEquals( in assertEquals() method in TestCase
108 public static void assertEquals(long expected, long actual) { in assertEquals() method in TestCase
114 public static void assertEquals( in assertEquals() method in TestCase
121 public static void assertEquals(boolean expected, boolean actual) { in assertEquals() method in TestCase
127 public static void assertEquals( in assertEquals() method in TestCase
134 public static void assertEquals(float expected, float actual) { in assertEquals() method in TestCase
[all …]
/art/test/406-fields/src/
DMain.java27 assertEquals(false, fields.iZ); in $opt$testAll()
28 assertEquals(0, fields.iB); in $opt$testAll()
29 assertEquals(0, fields.iC); in $opt$testAll()
30 assertEquals(0, fields.iI); in $opt$testAll()
31 assertEquals(0, fields.iJ); in $opt$testAll()
32 assertEquals(0, fields.iS); in $opt$testAll()
33 assertEquals(0.0f, fields.iF); in $opt$testAll()
34 assertEquals(0.0, fields.iD); in $opt$testAll()
48 assertEquals(true, fields.iZ); in $opt$testAll()
49 assertEquals(-2, fields.iB); in $opt$testAll()
[all …]
DTestCase.java38 public static void assertEquals(String message, int expected, int actual) { in assertEquals() method in TestCase
44 public static void assertEquals(int expected, int actual) { in assertEquals() method in TestCase
70 public static void assertEquals(Object expected, Object actual) { in assertEquals() method in TestCase
94 public static void assertEquals( in assertEquals() method in TestCase
101 public static void assertEquals( in assertEquals() method in TestCase
108 public static void assertEquals(long expected, long actual) { in assertEquals() method in TestCase
114 public static void assertEquals( in assertEquals() method in TestCase
121 public static void assertEquals(boolean expected, boolean actual) { in assertEquals() method in TestCase
127 public static void assertEquals( in assertEquals() method in TestCase
134 public static void assertEquals(float expected, float actual) { in assertEquals() method in TestCase
[all …]
/art/test/410-floats/src/
DMain.java19 assertEquals(4.2f, returnFloat()); in main()
23 assertEquals(45.4f, returnFloat(a)); in main()
25 assertEquals(4.4, returnDouble()); in main()
28 assertEquals(42.4, returnDouble(b)); in main()
30 assertEquals(4.2f, invokeReturnFloat()); in main()
31 assertEquals(4.4, invokeReturnDouble()); in main()
32 assertEquals(4.2f, takeAFloat(4.2f)); in main()
33 assertEquals(3.1, takeADouble(3.1)); in main()
34 assertEquals(12.7, takeThreeDouble(3.1, 4.4, 5.2)); in main()
35 assertEquals(12.7f, takeThreeFloat(3.1f, 4.4f, 5.2f)); in main()
[all …]
/art/test/423-invoke-interface/src/
DMain.java92 public static void assertEquals(int expected, int value) { in assertEquals() method in Main
99 assertEquals(factor * 1, object.return1()); in $opt$InvokeInterface()
100 assertEquals(factor * 2, object.return2()); in $opt$InvokeInterface()
101 assertEquals(factor * 3, object.return3()); in $opt$InvokeInterface()
102 assertEquals(factor * 4, object.return4()); in $opt$InvokeInterface()
103 assertEquals(factor * 5, object.return5()); in $opt$InvokeInterface()
104 assertEquals(factor * 6, object.return6()); in $opt$InvokeInterface()
105 assertEquals(factor * 7, object.return7()); in $opt$InvokeInterface()
106 assertEquals(factor * 8, object.return8()); in $opt$InvokeInterface()
107 assertEquals(factor * 9, object.return9()); in $opt$InvokeInterface()
[all …]
/art/test/201-built-in-exception-detail-messages/src/
DMain.java33 private static void assertEquals(String expected, String actual) { in assertEquals() method in Main
59 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
67 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
75 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
83 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
91 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
99 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
110 assertEquals("java.lang.Exception cannot be stored in an array of type java.lang.String[]", in arrayStore()
120 assertEquals("java.lang.Integer cannot be stored in an array of type Main$C[][]", in arrayStore()
130 assertEquals("Main$C[] cannot be stored in an array of type java.lang.Float[][]", in arrayStore()
[all …]
/art/test/021-string2/src/junit/framework/
DAssert.java62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() method in Assert
73 static public void assertEquals(Object expected, Object actual) { in assertEquals() method in Assert
74 assertEquals(null, expected, actual); in assertEquals()
79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() method in Assert
90 static public void assertEquals(String expected, String actual) { in assertEquals() method in Assert
91 assertEquals(null, expected, actual); in assertEquals()
98 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() method in Assert
108 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() method in Assert
109 assertEquals(null, expected, actual, delta); in assertEquals()
116 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() method in Assert
[all …]
/art/test/082-inline-execute/src/junit/framework/
DAssert.java62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() method in Assert
73 static public void assertEquals(Object expected, Object actual) { in assertEquals() method in Assert
74 assertEquals(null, expected, actual); in assertEquals()
79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() method in Assert
90 static public void assertEquals(String expected, String actual) { in assertEquals() method in Assert
91 assertEquals(null, expected, actual); in assertEquals()
98 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() method in Assert
108 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() method in Assert
109 assertEquals(null, expected, actual, delta); in assertEquals()
116 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() method in Assert
[all …]
/art/test/425-invoke-super/src/
DMain.java35 static void assertEquals(int expected, int value) { in assertEquals() method in Main
44 assertEquals(1, new B().$opt$bar()); in main()
45 assertEquals(1, new C().$opt$bar()); in main()
46 assertEquals(1, new D().$opt$bar()); in main()
50 assertEquals(42, ((Integer)m.invoke(c.newInstance(), new Object[0])).intValue()); in main()
53 assertEquals(42, ((Integer)m.invoke(c.newInstance(), new Object[0])).intValue()); in main()
/art/test/436-shift-constant/src/
DMain.java19 assertEquals(0x80000000, doShiftInt(1)); in main()
20 assertEquals(0x8000000000000000L, doShiftLong(1L)); in main()
31 public static void assertEquals(int a, int b) { in assertEquals() method in Main
37 public static void assertEquals(long a, long b) { in assertEquals() method in Main
/art/test/021-string2/src/
DMain.java36 Assert.assertEquals(test.compareTo(test1), 0); in main()
40 Assert.assertEquals("".compareTo(""), 0); in main()
45 Assert.assertEquals(test.compareTo(sub), 0); in main()
46 Assert.assertEquals(sub.compareTo(test), 0); in main()
83 Assert.assertEquals(4, strings.length); in main()
85 Assert.assertEquals("this is a path", test.replaceAll("/", " ")); in main()
86 Assert.assertEquals("this is a path", test.replace("/", " ")); in main()
/art/test/445-checker-licm/src/
DMain.java112 public static void assertEquals(int expected, int actual) { in assertEquals() method in Main
119 assertEquals(10, div()); in main()
120 assertEquals(100, innerDiv()); in main()
121 assertEquals(12, arrayLength(new int[] { 4, 8 })); in main()
/art/test/430-live-register-slow-path/src/
DMain.java24 assertEquals(0, o.length); in $opt$TestSlowPath()
33 public static void assertEquals(int a, int b) {} in assertEquals() method in Main
/art/test/439-npe/src/
DMain.java224 assertEquals(declaringClass, element.getClassName()); in checkElement()
225 assertEquals(methodName, element.getMethodName()); in checkElement()
226 assertEquals(fileName, element.getFileName()); in checkElement()
227 assertEquals(lineNumber, element.getLineNumber()); in checkElement()
230 static void assertEquals(Object expected, Object actual) { in assertEquals() method in Main
237 static void assertEquals(int expected, int actual) { in assertEquals() method in Main
/art/test/122-npe/src/
DMain.java568 assertEquals(declaringClass, element.getClassName()); in checkElement()
569 assertEquals(methodName, element.getMethodName()); in checkElement()
570 assertEquals(fileName, element.getFileName()); in checkElement()
571 assertEquals(lineNumber, element.getLineNumber()); in checkElement()
574 static void assertEquals(Object expected, Object actual) { in assertEquals() method in Main
581 static void assertEquals(int expected, int actual) { in assertEquals() method in Main
/art/test/421-large-frame/src/
DMain.java21 public static void assertEquals(long expected, long result) { in assertEquals() method in Main
30 assertEquals(124750L, $opt$LargeFrame(dummy)); in main()
/art/test/470-huge-method/src/
DMain.java19 public static void assertEquals(long expected, long result) { in assertEquals() method in Main
27 assertEquals(499500L, HugeMethod()); in main()