/art/test/082-inline-execute/src/ |
D | Main.java | 111 Assert.assertEquals(str0.length(), 0); in test_String_length() 112 Assert.assertEquals(str1.length(), 1); in test_String_length() 113 Assert.assertEquals(str80.length(), 80); in test_String_length() 144 Assert.assertEquals(testStr.length() - 1, 33); // 33 = testStr.length()-1 as a constant. in test_String_charAt() 145 Assert.assertEquals('f', testStr.charAt(33)); in test_String_charAt() 151 Assert.assertEquals(a, testStr.charAt(0)); in test_String_charAt() 152 Assert.assertEquals(b, testStr.charAt(1)); in test_String_charAt() 153 Assert.assertEquals(c, testStr.charAt(10)); in test_String_charAt() 154 Assert.assertEquals(d, testStr.charAt(testStr.length()-1)); in test_String_charAt() 175 Assert.assertEquals(testStr.length(), 12); // 12 = " is the time".length() in test_String_charAtExc() [all …]
|
/art/test/412-new-array/src/ |
D | Main.java | 37 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 …]
|
D | TestCase.java | 38 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/415-optimizing-arith-neg/src/ |
D | Main.java | 22 public static void assertEquals(int expected, int result) { in assertEquals() method in Main 28 public static void assertEquals(long expected, long result) { in assertEquals() method in Main 34 public static void assertEquals(float expected, float result) { in assertEquals() method in Main 40 public static void assertEquals(String expected, float result) { in assertEquals() method in Main 46 public static void assertEquals(double expected, double result) { in assertEquals() method in Main 52 public static void assertEquals(String expected, double result) { in assertEquals() method in Main 82 assertEquals(-1, $opt$noinline$NegInt(1)); in negInt() 83 assertEquals(1, $opt$noinline$NegInt(-1)); in negInt() 84 assertEquals(0, $opt$noinline$NegInt(0)); in negInt() 85 assertEquals(51, $opt$noinline$NegInt(-51)); in negInt() [all …]
|
/art/tools/ahat/test/ |
D | QueryTest.java | 23 import static org.junit.Assert.assertEquals; 30 assertEquals("bar", query.get("foo", "not found")); in simple() 31 assertEquals("42", query.get("answer", "not found")); in simple() 32 assertEquals(42, query.getLong("answer", 0)); in simple() 33 assertEquals(42, query.getInt("answer", 0)); in simple() 34 assertEquals("not found", query.get("bar", "not found")); in simple() 35 assertEquals("really not found", query.get("bar", "really not found")); in simple() 36 assertEquals(0, query.getLong("bar", 0)); in simple() 37 assertEquals(0, query.getInt("bar", 0)); in simple() 38 assertEquals(42, query.getLong("bar", 42)); in simple() [all …]
|
D | InstanceTest.java | 45 import static org.junit.Assert.assertEquals; 56 assertEquals("hello, world", str.asString()); in asStringBasic() 63 assertEquals("Sigma (Ʃ) is not ASCII", str.asString()); in asStringNonAscii() 70 assertEquals("embedded\0...", str.asString()); in asStringEmbeddedZero() 77 assertEquals("char thing", str.asString()); in asStringCharArray() 84 assertEquals("hello", str.asString(5)); in asStringTruncated() 91 assertEquals("Sigma (Ʃ)", str.asString(9)); in asStringTruncatedNonAscii() 98 assertEquals("embed", str.asString(5)); in asStringTruncatedEmbeddedZero() 105 assertEquals("char ", str.asString(5)); in asStringCharArrayTruncated() 112 assertEquals("hello, world", str.asString(12)); in asStringExactMax() [all …]
|
/art/test/561-divrem/src/ |
D | Main.java | 18 public static void assertEquals(int expected, int actual) { in assertEquals() method in Main 24 public static void assertEquals(long expected, long actual) { in assertEquals() method in Main 31 assertEquals(0, $noinline$divInt(1)); in main() 32 assertEquals(1, $noinline$remInt(1)); in main() 34 assertEquals(0, $noinline$divInt(-1)); in main() 35 assertEquals(-1, $noinline$remInt(-1)); in main() 37 assertEquals(0, $noinline$divInt(0)); in main() 38 assertEquals(0, $noinline$remInt(0)); in main() 40 assertEquals(1, $noinline$divInt(Integer.MIN_VALUE)); in main() 41 assertEquals(0, $noinline$remInt(Integer.MIN_VALUE)); in main() [all …]
|
/art/test/407-arrays/src/ |
D | Main.java | 35 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 …]
|
D | TestCase.java | 38 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/ |
D | Main.java | 34 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 …]
|
/art/test/406-fields/src/ |
D | Main.java | 27 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 …]
|
D | TestCase.java | 38 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/569-checker-pattern-replacement/src/ |
D | Main.java | 1125 assertEquals("arbitrary string", staticReturnArg2("arbitrary string")); in main() 1126 assertEquals(4321L, returnArg1(s, 4321L)); in main() 1128 assertEquals(9, staticReturn9()); in main() 1129 assertEquals(7, return7(s)); in main() 1130 assertEquals(null, staticReturnNull()); in main() 1131 assertEquals(null, returnNull(s)); in main() 1133 assertEquals(42, getInt(s)); in main() 1134 assertEquals(-42.0, getDouble(s)); in main() 1135 assertEquals(null, getObject(s)); in main() 1136 assertEquals("dummy", getString(s)); in main() [all …]
|
/art/test/410-floats/src/ |
D | Main.java | 19 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/ |
D | Main.java | 92 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-except-detail-messages/src/ |
D | Main.java | 33 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/ |
D | Assert.java | 62 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/ |
D | Assert.java | 62 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/953-invoke-polymorphic-compiler/src/ |
D | Main.java | 44 public static void assertEquals(int i1, int i2) { in assertEquals() method in Main 49 public static void assertEquals(long i1, long i2) { in assertEquals() method in Main 54 public static void assertEquals(Object o, Object p) { in assertEquals() method in Main 60 public static void assertEquals(String s1, String s2) { in assertEquals() method in Main 117 assertEquals((int) mh.invokeExact(33, -4), 33); in $opt$BasicTest() 118 assertEquals((int) mh.invokeExact(-4, 33), 33); in $opt$BasicTest() 123 assertEquals((int) mh.invokeExact(33, -4, 17), 33); in $opt$BasicTest() 124 assertEquals((int) mh.invokeExact(-4, 17, 33), 17); in $opt$BasicTest() 125 assertEquals((int) mh.invokeExact(17, 33, -4), 33); in $opt$BasicTest() 131 assertEquals((int) mh.invokeExact(33, -4, 77, 88, 99, 111), 33); in $opt$BasicTest() [all …]
|
/art/test/952-invoke-custom/generator/ |
D | TestLinkerMethodMultipleArgumentTypes.java | 59 assertEquals(1, v2); in linkerMethod() 60 assertEquals('a', v3); in linkerMethod() 61 assertEquals(1024, v4); in linkerMethod() 62 assertEquals(1, v5); in linkerMethod() 63 assertEquals(11.1f, v6); in linkerMethod() 64 assertEquals(2.2, v7); in linkerMethod() 65 assertEquals("Hello", v8); in linkerMethod() 66 assertEquals(TestLinkerMethodMultipleArgumentTypes.class, v9); in linkerMethod() 67 assertEquals(123456789L, v10); in linkerMethod() 78 assertEquals(x + y, add(x, y)); in test() [all …]
|
/art/test/445-checker-licm/src/ |
D | Main.java | 204 public static void assertEquals(int expected, int actual) { in assertEquals() method in Main 211 assertEquals(10, div()); in main() 212 assertEquals(100, innerDiv()); in main() 213 assertEquals(18900, innerMul()); in main() 214 assertEquals(105, divByA(2, 0)); in main() 215 assertEquals(12, arrayLength(new int[] { 4, 8 })); in main() 216 assertEquals(21, divAndIntrinsic(new int[] { 4, -2, 8, -3 })); in main() 217 assertEquals(45, invariantBoundIntrinsic(-10)); in main() 218 assertEquals(30, invariantBodyIntrinsic(2, 3)); in main() 228 assertEquals(4, doWhile(-2)); in main() [all …]
|
/art/test/641-checker-arraycopy/src/ |
D | Main.java | 50 public static void assertEquals(Object one, Object two) { in assertEquals() method in Main 67 assertEquals(o[0], o); in main() 68 assertEquals(o[1], o); in main() 69 assertEquals(a[0], (byte)2); in main() 70 assertEquals(a[1], (byte)2); in main() 78 assertEquals(o[0], o); in main() 79 assertEquals(o[1], o); in main() 80 assertEquals(a[0], (byte)2); in main() 81 assertEquals(a[1], (byte)2); in main()
|
/art/test/956-methodhandles/src/ |
D | Main.java | 412 assertEquals("publicMethod", (String) mh.invoke(instance)); in testUnreflects() 413 assertEquals("publicMethod", (String) mh.invokeExact(instance)); in testUnreflects() 417 assertEquals("publicStaticMethod", (String) mh.invoke()); in testUnreflects() 418 assertEquals("publicStaticMethod", (String) mh.invokeExact()); in testUnreflects() 428 assertEquals("privateMethod", (String) mh.invoke(instance)); in testUnreflects() 429 assertEquals("privateMethod", (String) mh.invokeExact(instance)); in testUnreflects() 439 assertEquals("privateStaticMethod", (String) mh.invoke()); in testUnreflects() 440 assertEquals("privateStaticMethod", (String) mh.invokeExact()); in testUnreflects() 451 assertEquals("abc", instance.publicField); in testUnreflects() 453 assertEquals("def", instance.publicField); in testUnreflects() [all …]
|
/art/test/542-inline-trycatch/src/ |
D | Main.java | 55 assertEquals(42, val); in testSingleBlockFromTry() 71 assertEquals(42, val); in testSingleBlockFromCatch() 82 assertEquals(42, val); in testMultipleBlocksFromTry() 89 assertEquals(32, val); in testMultipleBlocksFromTry() 110 assertEquals(42, val); in testMultipleBlocksFromCatch() 117 assertEquals(32, val); in testMultipleBlocksFromCatch() 128 assertEquals(42, val); in testTryCatchFromTry() 135 assertEquals(-1, val); in testTryCatchFromTry() 146 assertEquals(42, val); in testTryCatchFromCatch() 153 assertEquals(-1, val); in testTryCatchFromCatch() [all …]
|
/art/test/566-polymorphic-inlining/src/ |
D | Main.java | 24 public static void assertEquals(Object expected, Object actual) { in assertEquals() method in Main 30 public static void assertEquals(int expected, int actual) { in assertEquals() method in Main 65 assertEquals(Main.class, testInvokeVirtual(mains[0])); in main() 66 assertEquals(Main.class, testInvokeVirtual(mains[1])); in main() 68 assertEquals(Itf.class, testInvokeInterface(itfs[0])); in main() 69 assertEquals(Itf.class, testInvokeInterface(itfs[1])); in main() 71 assertEquals(Itf.class, testInvokeInterface2(itfs[0])); in main() 72 assertEquals(Itf.class, testInvokeInterface2(itfs[1])); in main() 75 assertEquals(OtherSubclass.class, testInvokeVirtual(mains[2])); in main() 76 assertEquals(OtherSubclass.class, testInvokeInterface(itfs[2])); in main() [all …]
|