Home
last modified time | relevance | path

Searched refs:assertTrue (Results 1 – 25 of 38) sorted by relevance

12

/art/test/003-omnibus-opcodes/src/
DCompare.java29 Main.assertTrue(false); in testIntCompare()
31 Main.assertTrue(false); in testIntCompare()
33 Main.assertTrue(false); in testIntCompare()
35 Main.assertTrue(false); in testIntCompare()
37 Main.assertTrue(false); in testIntCompare()
39 Main.assertTrue(false); in testIntCompare()
43 Main.assertTrue(true); in testIntCompare()
45 Main.assertTrue(false); in testIntCompare()
49 Main.assertTrue(false); in testIntCompare()
51 Main.assertTrue(false); in testIntCompare()
[all …]
DArray.java26 Main.assertTrue(bytes[0] == 0); in checkBytes()
27 Main.assertTrue(bytes[1] == -1); in checkBytes()
28 Main.assertTrue(bytes[2] == -2); in checkBytes()
29 Main.assertTrue(bytes[3] == -3); in checkBytes()
30 Main.assertTrue(bytes[4] == -4); in checkBytes()
33 Main.assertTrue(shorts[0] == 20); in checkShorts()
34 Main.assertTrue(shorts[1] == 10); in checkShorts()
35 Main.assertTrue(shorts[2] == 0); in checkShorts()
36 Main.assertTrue(shorts[3] == -10); in checkShorts()
37 Main.assertTrue(shorts[4] == -20); in checkShorts()
[all …]
DSwitch.java11 case -1: Main.assertTrue(false); break; in testSwitch()
12 case 0: Main.assertTrue(false); break; in testSwitch()
14 case 2: Main.assertTrue(false); break; in testSwitch()
15 case 3: Main.assertTrue(false); break; in testSwitch()
16 case 4: Main.assertTrue(false); break; in testSwitch()
17 default: Main.assertTrue(false); break; in testSwitch()
20 case 3: Main.assertTrue(false); break; in testSwitch()
21 case 4: Main.assertTrue(false); break; in testSwitch()
29 case 0x12345679: Main.assertTrue(false); break; in testSwitch()
30 default: Main.assertTrue(false); break; in testSwitch()
[all …]
DIntMath.java35 Main.assertTrue(i1 == 0x44332211); in shiftTest1()
36 Main.assertTrue(i2 == 0xbbaa9988); in shiftTest1()
37 Main.assertTrue(l == 0xbbaa998844332211L); in shiftTest1()
48 Main.assertTrue(l == 0xbbaa998844332211L); in shiftTest1()
66 Main.assertTrue(result == 0x1122334455667788L); in shiftTest2()
82 Main.assertTrue((int) b == -1); in unsignedShiftTest()
83 Main.assertTrue((int) s == -1); in unsignedShiftTest()
84 Main.assertTrue((int) c == 0x0fff); in unsignedShiftTest()
85 Main.assertTrue(i == 268435455); in unsignedShiftTest()
96 Main.assertTrue(1 << thirtyTwo == 1); in shiftTest3()
[all …]
DFloatMath.java33 Main.assertTrue(i == 1234); in convTest()
37 Main.assertTrue(i == -1234); in convTest()
42 Main.assertTrue(l == 1238); in convTest()
46 Main.assertTrue(l == -1238); in convTest()
51 Main.assertTrue(d > 1238.567 && d < 1238.568); in convTest()
56 Main.assertTrue(i == 1234); in convTest()
60 Main.assertTrue(i == -1234); in convTest()
65 Main.assertTrue(l == 5678956789L); in convTest()
69 Main.assertTrue(l == -5678956789L); in convTest()
74 Main.assertTrue(f > 1238.567 && f < 1238.568); in convTest()
[all …]
DInstField.java41 Main.assertTrue(false); in nullCheck()
47 Main.assertTrue(false); in nullCheck()
53 Main.assertTrue(false); in nullCheck()
59 Main.assertTrue(false); in nullCheck()
89 Main.assertTrue(mBoolean1); in checkFields()
90 Main.assertTrue(!mBoolean2); in checkFields()
91 Main.assertTrue(mByte1 == 127); in checkFields()
92 Main.assertTrue(mByte2 == -128); in checkFields()
93 Main.assertTrue(mChar1 == 32767); in checkFields()
94 Main.assertTrue(mChar2 == 65535); in checkFields()
[all …]
DClasses.java27 Main.assertTrue(!wantSub); in subFunc()
37 Main.assertTrue(thisRef instanceof Classes); in checkCast()
39 Main.assertTrue(moreRef instanceof Classes); in checkCast()
42 Main.assertTrue(moreRef instanceof MoreClasses); in checkCast()
43 Main.assertTrue(!(thisRef instanceof MoreClasses)); in checkCast()
47 Main.assertTrue(false); in checkCast()
51 Main.assertTrue(cce.getMessage().regionMatches(false, 0, "Classes", 0, 7)); in checkCast()
53 Main.assertTrue(!(thisRef instanceof MoreClasses)); in checkCast()
58 Main.assertTrue(false); in checkCast()
62 Main.assertTrue(cce.getMessage().regionMatches(false, 0, "Classes", 0, 7)); in checkCast()
[all …]
DStaticField.java57 Main.assertTrue(mBoolean1); in checkFields()
58 Main.assertTrue(!mBoolean2); in checkFields()
59 Main.assertTrue(mByte1 == 127); in checkFields()
60 Main.assertTrue(mByte2 == -128); in checkFields()
61 Main.assertTrue(mChar1 == 32767); in checkFields()
62 Main.assertTrue(mChar2 == 65535); in checkFields()
63 Main.assertTrue(mShort1 == 32767); in checkFields()
64 Main.assertTrue(mShort2 == -32768); in checkFields()
65 Main.assertTrue(mInt1 == 65537); in checkFields()
66 Main.assertTrue(mInt2 == -65537); in checkFields()
[all …]
DThrow.java33 Main.assertTrue(false); in one()
39 Main.assertTrue(false); in one()
59 Main.assertTrue(gotA); in twoA()
60 Main.assertTrue(!gotN); in twoA()
61 Main.assertTrue(!gotWeird); in twoA()
81 Main.assertTrue(!gotA); in twoN()
82 Main.assertTrue(gotN); in twoN()
83 Main.assertTrue(!gotWeird); in twoN()
95 Main.assertTrue(false); in rethrow()
98 Main.assertTrue(false); in rethrow()
[all …]
DUnresTest1.java11 Main.assertTrue(false); in run()
17 Main.assertTrue(false); in run()
23 Main.assertTrue(false); in run()
30 Main.assertTrue(false); in run()
36 Main.assertTrue(false); in run()
43 Main.assertTrue(false); in run()
49 Main.assertTrue(false); in run()
56 Main.assertTrue(false); in run()
62 Main.assertTrue(false); in run()
69 Main.assertTrue(false); in run()
[all …]
DUnresTest2.java13 Main.assertTrue(false); in checkCasts()
19 Main.assertTrue(false); in checkCasts()
34 Main.assertTrue(false); in run()
36 Main.assertTrue(ncdfe.getCause() instanceof ClassNotFoundException); in run()
42 Main.assertTrue(false); in run()
51 Main.assertTrue(false); in run()
DMethodCall.java29 Main.assertTrue(val == 7); in tryThing()
46 Main.assertTrue(a0 == 0); in manyArgs()
47 Main.assertTrue(a9 > 8.99 && a9 < 9.01); in manyArgs()
48 Main.assertTrue(a16 == -16); in manyArgs()
49 Main.assertTrue(a25 == 25); in manyArgs()
50 Main.assertTrue(a29.equals("twenty nine")); in manyArgs()
63 Main.assertTrue(false); in run()
DInternedString.java39 Main.assertTrue(strRef.get() == null); in testDeadInternedString()
47 Main.assertTrue(CONST == CONST.intern()); in testImmortalInternedString()
49 Main.assertTrue(strRef.get() != null); in testImmortalInternedString()
57 Main.assertTrue(strRef.get() == CONST); in testImmortalInternedString()
DMonitor.java29 Main.assertTrue(obj == null); in subTest()
43 Main.assertTrue(false); in run()
55 Main.assertTrue(mVal == 2); in run()
/art/test/031-class-attributes/src/
DClassAttrs.java150 assertTrue(String.class.isAssignableFrom(String.class)); in test_isAssignableFrom()
153 assertTrue(Object.class.isAssignableFrom(Object.class)); in test_isAssignableFrom()
154 assertTrue(Object.class.isAssignableFrom(Class.class)); in test_isAssignableFrom()
155 assertTrue(Object.class.isAssignableFrom(String.class)); in test_isAssignableFrom()
160 assertTrue(CharSequence.class.isAssignableFrom(String.class)); in test_isAssignableFrom()
164 assertTrue(AccessibleObject.class.isAssignableFrom(Method.class)); in test_isAssignableFrom()
168 assertTrue(int[].class.isAssignableFrom(int[].class)); in test_isAssignableFrom()
171 assertTrue(Object.class.isAssignableFrom(int[].class)); in test_isAssignableFrom()
183 assertTrue(String.class.isInstance("hello")); in test_isInstance()
186 assertTrue(Object.class.isInstance(new Object())); in test_isInstance()
[all …]
/art/test/021-string2/src/
DMain.java33 Assert.assertTrue(test.equals(test)); in main()
34 Assert.assertTrue(test.equals(test1)); in main()
38 Assert.assertTrue(test1.compareTo(test2) > 0); in main()
39 Assert.assertTrue(test2.compareTo(test1) < 0); in main()
42 Assert.assertTrue(test.compareTo("") > 0); in main()
43 Assert.assertTrue("".compareTo(test) < 0); in main()
48 Assert.assertTrue(test.equals(sub)); in main()
49 Assert.assertTrue(sub.equals(test)); in main()
67 Assert.assertTrue(test.equals("123456789")); in main()
71 Assert.assertTrue(test.equals("23456789")); in main()
[all …]
/art/test/422-instanceof/src/
DMain.java20 public static void assertTrue(boolean value) { in assertTrue() method in Main
47 assertTrue($opt$InstanceOfMain()); in $opt$TestMain()
51 assertTrue($opt$InstanceOfMain()); in $opt$TestMain()
58 assertTrue($opt$InstanceOfFinalClass()); in $opt$TestFinalClass()
/art/test/959-invoke-polymorphic-accessors/src/
DMain.java55 public static void assertTrue(boolean value) throws AssertionError { in assertTrue() method in Main.Tester
117 assertTrue(got == value); in getByte()
160 assertTrue(got == value); in getChar()
198 assertTrue(got == value); in getShort()
236 assertTrue(got == value); in getInt()
274 assertTrue(got == value); in getLong()
312 assertTrue(got == value); in getFloat()
351 assertTrue(got == value); in getDouble()
391 assertTrue(got.equals(value)); in getString()
432 assertTrue(got == value); in getBoolean()
[all …]
/art/test/592-checker-regression-bool-input/src/
DMain.java29 public static void assertTrue(boolean result) { in assertTrue() method in Main
48 assertTrue((Boolean) m.invoke(null, null)); in main()
52 assertTrue((Boolean) m.invoke(null, null)); in main()
/art/test/412-new-array/src/
DMain.java249 assertTrue(exception instanceof NullPointerException); in testSmaliFillArrayData()
275 assertTrue(exception instanceof IndexOutOfBoundsException); in testSmaliFillArrayData()
288 assertTrue(exception instanceof NullPointerException); in testSmaliFillArrayData()
314 assertTrue(exception instanceof IndexOutOfBoundsException); in testSmaliFillArrayData()
327 assertTrue(exception instanceof NullPointerException); in testSmaliFillArrayData()
353 assertTrue(exception instanceof IndexOutOfBoundsException); in testSmaliFillArrayData()
366 assertTrue(exception instanceof NullPointerException); in testSmaliFillArrayData()
392 assertTrue(exception instanceof IndexOutOfBoundsException); in testSmaliFillArrayData()
405 assertTrue(exception instanceof NullPointerException); in testSmaliFillArrayData()
431 assertTrue(exception instanceof IndexOutOfBoundsException); in testSmaliFillArrayData()
[all …]
DTestCase.java50 public static void assertTrue(String message, boolean condition) { in assertTrue() method in TestCase
56 public static void assertTrue(boolean condition) { in assertTrue() method in TestCase
57 assertTrue("Expected true", condition); in assertTrue()
91 assertTrue(Arrays.equals(expected, actual)); in assertArrayEquals()
/art/test/021-string2/src/junit/framework/
DAssert.java18 static public void assertTrue(String message, boolean condition) { in assertTrue() method in Assert
26 static public void assertTrue(boolean condition) { in assertTrue() method in Assert
27 assertTrue(null, condition); in assertTrue()
34 assertTrue(message, !condition); in assertFalse()
218 assertTrue(message, object != null); in assertNotNull()
237 assertTrue(message, object == null); in assertNull()
/art/test/082-inline-execute/src/junit/framework/
DAssert.java18 static public void assertTrue(String message, boolean condition) { in assertTrue() method in Assert
26 static public void assertTrue(boolean condition) { in assertTrue() method in Assert
27 assertTrue(null, condition); in assertTrue()
34 assertTrue(message, !condition); in assertFalse()
218 assertTrue(message, object != null); in assertNotNull()
237 assertTrue(message, object == null); in assertNull()
/art/test/414-static-fields/src/
DTestCase.java50 public static void assertTrue(String message, boolean condition) { in assertTrue() method in TestCase
56 public static void assertTrue(boolean condition) { in assertTrue() method in TestCase
57 assertTrue("Expected true", condition); in assertTrue()
91 assertTrue(Arrays.equals(expected, actual)); in assertArrayEquals()
/art/test/407-arrays/src/
DTestCase.java50 public static void assertTrue(String message, boolean condition) { in assertTrue() method in TestCase
56 public static void assertTrue(boolean condition) { in assertTrue() method in TestCase
57 assertTrue("Expected true", condition); in assertTrue()
91 assertTrue(Arrays.equals(expected, actual)); in assertArrayEquals()

12