Home
last modified time | relevance | path

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

12345678910>>...64

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
DCharacterTest.java27 assertTrue(Character.isValidCodePoint(0)); in test_isValidCodePointI()
28 assertTrue(Character.isValidCodePoint(1)); in test_isValidCodePointI()
32 assertTrue(Character.isValidCodePoint(c)); in test_isValidCodePointI()
46 assertTrue(Character.isSupplementaryCodePoint(c)); in test_isSupplementaryCodePointI()
56 assertTrue(Character.isHighSurrogate((char) c)); in test_isHighSurrogateC()
66 assertTrue(Character.isLowSurrogate((char) c)); in test_isLowSurrogateC()
75 assertTrue(Character.isSurrogatePair('\uD800', '\uDC00')); in test_isSurrogatePairCC()
76 assertTrue(Character.isSurrogatePair('\uD800', '\uDFFF')); in test_isSurrogatePairCC()
77 assertTrue(Character.isSurrogatePair('\uDBFF', '\uDFFF')); in test_isSurrogatePairCC()
318 assertTrue(Arrays.equals(new char[] { '\uD800', '\uDC00' }, dst)); in test_toCharsI$CI()
[all …]
DString2Test.java51 assertTrue("Created incorrect string", new String().equals("")); in test_Constructor()
59 assertTrue("Failed to create string", new String(hw1.getBytes()) in test_Constructor$B()
70 assertTrue("Incorrect string returned: " + s, s.equals("ABCDE")); in test_Constructor$BI()
72 assertTrue("Did not use nonzero hibyte", !s.equals("ABCDE")); in test_Constructor$BI()
80 assertTrue("Failed to create string", new String(hw1.getBytes(), 0, hw1 in test_Constructor$BII()
89 assertTrue("Did not throw exception", exception); in test_Constructor$BII()
99 assertTrue("Incorrect string returned: " + s, s.equals("BCD")); in test_Constructor$BIII()
101 assertTrue("Did not use nonzero hibyte", !s.equals("ABCDE")); in test_Constructor$BIII()
111 assertTrue("Incorrect string returned: " + s, s.equals("ABCDE")); in test_Constructor$BIILjava_lang_String()
123 assertTrue("Incorrect string returned: " + s, s.equals("ABCDE")); in test_Constructor$BLjava_lang_String()
[all …]
/external/v8/test/mjsunit/
Ddouble-equals.js34 assertTrue (void 0 == void 0, "void 0 == void 0");
35 assertTrue (null == null, "null == null");
42 assertTrue(Number.MAX_VALUE == Number.MAX_VALUE, "MAX == MAX");
43 assertTrue(Number.MIN_VALUE == Number.MIN_VALUE, "MIN == MIN");
44 assertTrue(Infinity == Infinity, "Inf == Inf");
45 assertTrue(-Infinity == -Infinity, "-Inf == -Inf");
47 assertTrue(0 == 0, "0 == 0");
48 assertTrue(0 == -0, "0 == -0");
49 assertTrue(-0 == 0, "-0 == 0");
50 assertTrue(-0 == -0, "-0 == -0");
[all …]
Ddelete.js32 assertTrue(delete null);
33 assertTrue(delete 2);
34 assertTrue(delete 'foo');
35 assertTrue(delete Number(7));
36 assertTrue(delete new Number(8));
38 assertTrue(delete {}.x);
39 assertTrue(delete {}.y);
40 assertTrue(delete {}.toString);
44 assertTrue(delete x);
45 assertTrue(typeof x === 'undefined', "x is gone");
[all …]
Dregexp-multiline-stack-trace.js37 assertTrue(/^bar/.test("bar"));
38 assertTrue(/^bar/.test("bar\nfoo"));
40 assertTrue(/^bar/m.test("bar"));
41 assertTrue(/^bar/m.test("bar\nfoo"));
42 assertTrue(/^bar/m.test("foo\nbar"));
44 assertTrue(/bar$/.test("bar"));
46 assertTrue(/bar$/.test("foo\nbar"));
47 assertTrue(/bar$/m.test("bar"));
48 assertTrue(/bar$/m.test("bar\nfoo"));
49 assertTrue(/bar$/m.test("foo\nbar"));
[all …]
Dregexp-multiline.js33 assertTrue(/^bar/.test("bar"));
34 assertTrue(/^bar/.test("bar\nfoo"));
36 assertTrue(/^bar/m.test("bar"));
37 assertTrue(/^bar/m.test("bar\nfoo"));
38 assertTrue(/^bar/m.test("foo\nbar"));
40 assertTrue(/bar$/.test("bar"));
42 assertTrue(/bar$/.test("foo\nbar"));
43 assertTrue(/bar$/m.test("bar"));
44 assertTrue(/bar$/m.test("bar\nfoo"));
45 assertTrue(/bar$/m.test("foo\nbar"));
[all …]
Dregexp.js90 assertTrue(/\ca/.test( "\x01" ));
93 assertTrue(/\c[a/]/.test( "\\ca" ));
94 assertTrue(/\c[a/]/.test( "\\c/" ));
98 assertTrue(re.test("\r"));
105 assertTrue(re.test("c]"));
106 assertTrue(re.test("\\]"));
111 assertTrue(re.test("\x11"));
117 assertTrue(re.test("\x1f"));
124 assertTrue(re.test("\\"));
125 assertTrue(re.test("c"));
[all …]
Din.js35 assertTrue('toString' in o, "toString");
39 assertTrue('x' in o);
41 assertTrue('toString' in o, "toString");
45 assertTrue('x' in o);
46 assertTrue('y' in o);
47 assertTrue('toString' in o, "toString");
58 assertTrue('toString' in a, "toString");
61 assertTrue(0 in a);
63 assertTrue('0' in a);
65 assertTrue('toString' in a, "toString");
[all …]
Dstrict-equals.js30 assertTrue(null === null);
31 assertTrue(null === n);
32 assertTrue(n === null);
33 assertTrue(n === n);
40 assertTrue(void 0 === void 0);
41 assertTrue(u === u);
42 assertTrue(u === void 0);
43 assertTrue(void 0 === u);
45 assertTrue('foo' === 'foo');
50 assertTrue(s === s);
[all …]
Dapply.js36 assertTrue(this === f0.apply(), "1-0");
38 assertTrue(this === f0.apply(this), "2a");
39 assertTrue(this === f0.apply(this, new Array(1)), "2b");
40 assertTrue(this === f0.apply(this, new Array(2)), "2c");
41 assertTrue(this === f0.apply(this, new Array(4242)), "2d");
43 assertTrue(this === f0.apply(null), "3a");
44 assertTrue(this === f0.apply(null, new Array(1)), "3b");
45 assertTrue(this === f0.apply(null, new Array(2)), "3c");
46 assertTrue(this === f0.apply(this, new Array(4242)), "3d");
48 assertTrue(this === f0.apply(void 0), "4a");
[all …]
/external/v8/test/mjsunit/regress/
Dregress-674753.js29 assertTrue(typeof 0 == 'number');
30 assertTrue(typeof 0 === 'number');
31 assertTrue(typeof 1.2 == 'number');
32 assertTrue(typeof 1.2 === 'number');
37 assertTrue(typeof 'x' == 'string');
38 assertTrue(typeof 'x' === 'string');
39 assertTrue(typeof ('x' + 'x') == 'string');
40 assertTrue(typeof ('x' + 'x') === 'string');
47 assertTrue(typeof true == 'boolean');
48 assertTrue(typeof true === 'boolean');
[all …]
Dregress-91517.js91 assertTrue(contains(names, "baz"));
92 assertTrue(contains(names, "boo"));
93 assertTrue(contains(names, "foo"));
94 assertTrue(contains(names, "fuz"));
95 assertTrue(contains(names, "fuz1"));
96 assertTrue(contains(names, "fuz2"));
97 assertTrue(contains(names, "fuz3"));
98 assertTrue(contains(names, "fuz4"));
99 assertTrue(contains(names, "fuz5"));
100 assertTrue(contains(names, "fuz6"));
[all …]
/external/apache-harmony/math/src/test/java/tests/api/java/math/
DBigIntegerTest.java94 assertTrue("Random number is negative", bi.compareTo(zero) >= 0); in test_ConstructorILjava_util_Random()
95 assertTrue("Random number is too big", in test_ConstructorILjava_util_Random()
97 assertTrue( in test_ConstructorILjava_util_Random()
100 assertTrue("Not zero", new BigInteger(0, rand).equals(BigInteger.ZERO)); in test_ConstructorILjava_util_Random()
109 assertTrue("Random number one is negative", bi.compareTo(zero) >= 0); in test_ConstructorIILjava_util_Random()
110 assertTrue("Random number one is too big", in test_ConstructorIILjava_util_Random()
112 assertTrue("Random number two is negative", bi2.compareTo(zero) >= 0); in test_ConstructorIILjava_util_Random()
113 assertTrue("Random number two is too big", in test_ConstructorIILjava_util_Random()
123 assertTrue("Bit length incorrect", bi.bitLength() == i); in test_ConstructorIILjava_util_Random()
135 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO in test_Constructor$B()
[all …]
DBigDecimalTest.java40 assertTrue("the BigDecimal value is not initialized properly", big in test_ConstructorLjava_math_BigInteger()
50 assertTrue("the BigDecimal value is not initialized properly", big in test_ConstructorLjava_math_BigIntegerI()
53 assertTrue("the BigDecimal value is not represented properly", big in test_ConstructorLjava_math_BigIntegerI()
62 assertTrue( in test_ConstructorD()
66 assertTrue("the double representation is not correct", big in test_ConstructorD()
69 assertTrue("the double representation is not correct", big in test_ConstructorD()
72 assertTrue("the double representation is not correct", big in test_ConstructorD()
76 assertTrue( in test_ConstructorD()
80 assertTrue( in test_ConstructorD()
85 assertTrue( in test_ConstructorD()
[all …]
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/
DUnixFileTest.java132 assertTrue(testFile.setExecutable(true, false)); in test_canExecute()
133 assertTrue(testFile.canExecute()); in test_canExecute()
134 assertTrue(testFile.setExecutable(true, true)); in test_canExecute()
135 assertTrue(testFile.canExecute()); in test_canExecute()
137 assertTrue(testFile.setExecutable(false, false)); in test_canExecute()
139 assertTrue(testFile.setExecutable(false, true)); in test_canExecute()
142 assertTrue(testFile.setExecutable(true, false)); in test_canExecute()
143 assertTrue(testFile.canExecute()); in test_canExecute()
146 assertTrue(testDir.canExecute()); in test_canExecute()
147 assertTrue(testDir.setExecutable(false, true)); in test_canExecute()
[all …]
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_ListTest.java45 assertTrue("ListTest - get failed", elem in runTest()
48 assertTrue("ListTest - hashCode failed", hashCode == list.hashCode()); in runTest()
51 assertTrue("ListTest - a) add with index failed--did not insert", list in runTest()
53 assertTrue( in runTest()
56 assertTrue( in runTest()
61 assertTrue("ListTest - a) set failed--did not set", list.get(50) in runTest()
63 assertTrue("ListTest - b) set failed--affected following elements", in runTest()
65 assertTrue("ListTest - c) set failed--affected previous elements", list in runTest()
69 assertTrue("ListTest - a) remove with index failed--did not remove", in runTest()
71 assertTrue( in runTest()
[all …]
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DCollatorTest.java32 assertTrue("Clones answered false to equals", c.equals(c2)); in test_clone()
33 assertTrue("Clones were equivalent", c != c2); in test_clone()
46 assertTrue("a) Failed on primary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object()
49 assertTrue("a) Failed on secondary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object()
52 assertTrue("a) Failed on tertiary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object()
55 assertTrue("a) Failed on identical", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object()
59 assertTrue("a) Failed on primary expansion", in test_compareLjava_lang_ObjectLjava_lang_Object()
65 assertTrue("b) Failed on primary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object()
68 assertTrue("b) Failed on secondary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object()
71 assertTrue("b) Failed on tertiary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object()
[all …]
DDateFormatTest.java36 assertTrue("Clone not equal", format.equals(clone)); in test_clone()
38 assertTrue("Clone shares NumberFormat", !format.equals(clone)); in test_clone()
46 assertTrue("No locales", locales.length > 0); in test_getAvailableLocales()
55 assertTrue("Doesn't work", in test_getAvailableLocales()
58 assertTrue("Missing locales", english && german); in test_getAvailableLocales()
68 assertTrue("Calendars not identical", cal1 == cal2); in test_getCalendar()
76 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_getDateInstance()
77 assertTrue("Wrong default", f2.equals(DateFormat.getDateInstance( in test_getDateInstance()
79 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals( in test_getDateInstance()
81 assertTrue("Doesn't work", in test_getDateInstance()
[all …]
DChoiceFormatTest.java50 assertTrue("a) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String()
53 assertTrue("b) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String()
56 assertTrue("c) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String()
59 assertTrue("d) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String()
62 assertTrue("e) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String()
65 assertTrue("f) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String()
68 assertTrue("g) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String()
71 assertTrue("h) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String()
74 assertTrue("i) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String()
77 assertTrue("j) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String()
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DArrayDequeTest.java147 assertTrue(testQue.offerFirst(testObjOne)); in test_offerFirst()
150 assertTrue(testQue.offerFirst(testObjOne)); in test_offerFirst()
153 assertTrue(testQue.offerFirst(testObjTwo)); in test_offerFirst()
169 assertTrue(testQue.offerLast(testObjOne)); in test_offerLast()
172 assertTrue(testQue.offerLast(testObjOne)); in test_offerLast()
175 assertTrue(testQue.offerLast(testObjTwo)); in test_offerLast()
191 assertTrue(testQue.offerLast(testObjOne)); in test_removeFirst()
192 assertTrue(testQue.offerLast(testObjTwo)); in test_removeFirst()
193 assertTrue(testQue.offerLast(testObjThree)); in test_removeFirst()
212 assertTrue(testQue.offerLast(testObjOne)); in test_removeLast()
[all …]
DLinkedListTest.java77 assertTrue("Incorrect LinkedList constructed", new LinkedList(ll) in test_ConstructorLjava_util_Collection()
88 assertTrue("Failed to add Object>: " + ll.get(50).toString(), ll in test_addILjava_lang_Object()
90 assertTrue("Failed to fix up list after insert", in test_addILjava_lang_Object()
131 assertTrue("Failed to add Object", ll.getLast() == o); in test_addLjava_lang_Object()
146 assertTrue("Manipulated elements < index", ll.get(i) == objArray[i]); in test_addAllILjava_util_Collection()
148 assertTrue("Failed to ad elements properly", in test_addAllILjava_util_Collection()
151 assertTrue("Failed to ad elements properly", in test_addAllILjava_util_Collection()
198 assertTrue("Failed to add elements properly", l.get(i).equals( in test_addAllLjava_util_Collection()
204 assertTrue("Added to list in incorrect order", ll.get(i).equals( in test_addAllLjava_util_Collection()
206 assertTrue("Failed to add to existing list", ll.get(i + 100) in test_addAllLjava_util_Collection()
[all …]
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DXMLFormatterTest.java60 assertTrue(result.indexOf("<message>" + rb.getString("pattern") in testLocalFormat()
62 assertTrue(result.indexOf("<key>pattern</key>") > 0); in testLocalFormat()
66 assertTrue(result.indexOf("<message>" + rb.getString("msg") in testLocalFormat()
68 assertTrue(result.indexOf("<key>msg</key>") > 0); in testLocalFormat()
72 assertTrue(result.indexOf("<message>pattern {0, number}</message>") > 0); in testLocalFormat()
73 assertTrue(result.indexOf("<key>") < 0); in testLocalFormat()
78 assertTrue(result.indexOf("<message>bad key</message>") > 0); in testLocalFormat()
79 assertTrue(result.indexOf("<key>") < 0); in testLocalFormat()
96 assertTrue(output.indexOf("<record>") >= 0);
97 assertTrue(output.indexOf("<date>") >= 0);
[all …]
/external/apache-harmony/regex/src/test/java/org/apache/harmony/tests/java/util/regex/
DPattern2Test.java34 assertTrue(m1.matches()); in testSimpleMatch()
35 assertTrue(m1.find(0)); in testSimpleMatch()
36 assertTrue(m1.lookingAt()); in testSimpleMatch()
43 assertTrue(Pattern.matches("foo.*", "foo123")); in testSimpleMatch()
48 assertTrue(Pattern.matches("", "")); in testSimpleMatch()
59 assertTrue(m.find()); in testCursors()
66 assertTrue(m.find()); in testCursors()
72 assertTrue(m.find()); in testCursors()
78 assertTrue(m.find()); in testCursors()
84 assertTrue(m.find()); in testCursors()
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DInet6AddressTest.java44 assertTrue("Multicast address " + addrName + " not detected.", addr in test_isMulticastAddress()
49 assertTrue("Non multicast address " + addrName in test_isMulticastAddress()
62 assertTrue("IPv4 compatable address " + addrName in test_isMulticastAddress()
68 assertTrue("IPv4 compatable address " + addrName in test_isMulticastAddress()
81 assertTrue("IPv4-mapped IPv6 multicast address " + addrName in test_isMulticastAddress()
86 assertTrue("IPv4-mapped IPv6 non-multicast address " + addrName in test_isMulticastAddress()
99 assertTrue( in test_isAnyLocalAddress()
106 assertTrue( in test_isAnyLocalAddress()
113 assertTrue("The addresses " + addrName in test_isAnyLocalAddress()
126 assertTrue("IPv6 loopback address " + addrName + " not detected.", in test_isLoopbackAddress()
[all …]
/external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerConvertTest.java39 assertTrue(aNumber == result); in testDoubleValueZero()
50 assertTrue(aNumber == result); in testDoubleValuePositive1()
61 assertTrue(aNumber == result); in testDoubleValuePositive2()
72 assertTrue(aNumber == result); in testDoubleValueNegative1()
83 assertTrue(aNumber == result); in testDoubleValueNegative2()
96 assertTrue(aNumber == result); in testDoubleValuePosRounded1()
110 assertTrue(aNumber == result); in testDoubleValuePosRounded2()
121 assertTrue(aNumber == result); in testDoubleValuePosNotRounded()
133 assertTrue(aNumber == result); in testDoubleValueNegRounded1()
147 assertTrue(aNumber == result); in testDoubleValueNegRounded2()
[all …]

12345678910>>...64