Home
last modified time | relevance | path

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

12345678910>>...32

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/bigdec/
DDiagBigDecimalTest.java193 … TestFmwk.assertTrue("con001", (ohos.global.icu.math.BigDecimal.ZERO.toString()).equals("0")); in diagconstructors()
194 TestFmwk.assertTrue("con002", (ohos.global.icu.math.BigDecimal.ONE.toString()).equals("1")); in diagconstructors()
195 … TestFmwk.assertTrue("con003", (ohos.global.icu.math.BigDecimal.TEN.toString()).equals("10")); in diagconstructors()
196 TestFmwk.assertTrue("con004", (ohos.global.icu.math.BigDecimal.ZERO.intValueExact()) == 0); in diagconstructors()
197 TestFmwk.assertTrue("con005", (ohos.global.icu.math.BigDecimal.ONE.intValueExact()) == 1); in diagconstructors()
198 TestFmwk.assertTrue("con006", (ohos.global.icu.math.BigDecimal.TEN.intValueExact()) == 10); in diagconstructors()
201 …TestFmwk.assertTrue("cbd001", ((new ohos.global.icu.math.BigDecimal(new java.math.BigDecimal("0"))… in diagconstructors()
202 …TestFmwk.assertTrue("cbd002", ((new ohos.global.icu.math.BigDecimal(new java.math.BigDecimal("1"))… in diagconstructors()
203 …TestFmwk.assertTrue("cbd003", ((new ohos.global.icu.math.BigDecimal(new java.math.BigDecimal("10")… in diagconstructors()
204 …TestFmwk.assertTrue("cbd004", ((new ohos.global.icu.math.BigDecimal(new java.math.BigDecimal("1000… in diagconstructors()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/
DDiagBigDecimalTest.java190 TestFmwk.assertTrue("con001", (com.ibm.icu.math.BigDecimal.ZERO.toString()).equals("0")); in diagconstructors()
191 TestFmwk.assertTrue("con002", (com.ibm.icu.math.BigDecimal.ONE.toString()).equals("1")); in diagconstructors()
192 TestFmwk.assertTrue("con003", (com.ibm.icu.math.BigDecimal.TEN.toString()).equals("10")); in diagconstructors()
193 TestFmwk.assertTrue("con004", (com.ibm.icu.math.BigDecimal.ZERO.intValueExact()) == 0); in diagconstructors()
194 TestFmwk.assertTrue("con005", (com.ibm.icu.math.BigDecimal.ONE.intValueExact()) == 1); in diagconstructors()
195 TestFmwk.assertTrue("con006", (com.ibm.icu.math.BigDecimal.TEN.intValueExact()) == 10); in diagconstructors()
198 …TestFmwk.assertTrue("cbd001", ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("0"))).to… in diagconstructors()
199 …TestFmwk.assertTrue("cbd002", ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("1"))).to… in diagconstructors()
200 …TestFmwk.assertTrue("cbd003", ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("10"))).t… in diagconstructors()
201 …TestFmwk.assertTrue("cbd004", ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("1000")))… in diagconstructors()
[all …]
/third_party/python/Lib/lib2to3/tests/
Dtest_util.py33 self.assertTrue(self.is_tuple("(a, b)"))
34 self.assertTrue(self.is_tuple("(a, (b, c))"))
35 self.assertTrue(self.is_tuple("((a, (b, c)),)"))
36 self.assertTrue(self.is_tuple("(a,)"))
37 self.assertTrue(self.is_tuple("()"))
49 self.assertTrue(self.is_list("[]"))
50 self.assertTrue(self.is_list("[a]"))
51 self.assertTrue(self.is_list("[a, b]"))
52 self.assertTrue(self.is_list("[a, [b, c]]"))
53 self.assertTrue(self.is_list("[[a, [b, c]],]"))
[all …]
/third_party/python/Lib/test/
Dtest_stringprep.py10 self.assertTrue(in_table_a1("\u0221"))
13 self.assertTrue(in_table_b1("\u00ad"))
16 self.assertTrue(map_table_b2("\u0041"), "\u0061")
17 self.assertTrue(map_table_b2("\u0061"), "\u0061")
19 self.assertTrue(map_table_b3("\u0041"), "\u0061")
20 self.assertTrue(map_table_b3("\u0061"), "\u0061")
22 self.assertTrue(in_table_c11("\u0020"))
25 self.assertTrue(in_table_c12("\u00a0"))
28 self.assertTrue(in_table_c12("\u00a0"))
31 self.assertTrue(in_table_c11_c12("\u00a0"))
[all …]
Dtest_symtable.py80 self.assertTrue(self.spam.is_optimized())
86 self.assertTrue(self.internal.is_nested())
89 self.assertTrue(self.top.has_children())
90 self.assertTrue(self.Mine.has_children())
106 self.assertTrue(self.spam.lookup("glob").is_global())
108 self.assertTrue(self.spam.lookup("bar").is_global())
109 self.assertTrue(self.spam.lookup("bar").is_declared_global())
112 self.assertTrue(self.spam.lookup("bar").is_global())
114 self.assertTrue(self.top.lookup("some_non_assigned_global_var").is_global())
115 self.assertTrue(self.top.lookup("some_assigned_global_var").is_global())
[all …]
Dtest_exception_variations.py19 self.assertTrue(hit_except)
20 self.assertTrue(hit_finally)
38 self.assertTrue(hit_finally)
39 self.assertTrue(hit_else)
52 self.assertTrue(hit_except)
53 self.assertTrue(hit_finally)
67 self.assertTrue(hit_finally)
77 self.assertTrue(hit_except)
101 self.assertTrue(hit_except)
115 self.assertTrue(hit_else)
[all …]
Dtest_re.py609 self.assertTrue(re.match(r"^x{3}$", "xxx"))
610 self.assertTrue(re.match(r"^x{1,3}$", "xxx"))
611 self.assertTrue(re.match(r"^x{3,3}$", "xxx"))
612 self.assertTrue(re.match(r"^x{1,4}$", "xxx"))
613 self.assertTrue(re.match(r"^x{3,4}?$", "xxx"))
614 self.assertTrue(re.match(r"^x{3}?$", "xxx"))
615 self.assertTrue(re.match(r"^x{1,3}?$", "xxx"))
616 self.assertTrue(re.match(r"^x{1,4}?$", "xxx"))
617 self.assertTrue(re.match(r"^x{3,4}?$", "xxx"))
620 self.assertTrue(re.match(r"^x{}$", "x{}"))
[all …]
Dtest_unary.py8 self.assertTrue(-2 == 0 - 2)
11 self.assertTrue(-2 == 0 - 2)
12 self.assertTrue(-2.0 == 0 - 2.0)
13 self.assertTrue(-2j == 0 - 2j)
24 self.assertTrue(-2 == 0 - 2)
27 self.assertTrue(-2 == 0 - 2)
31 self.assertTrue(eval("+" + nines) == 10**32-1)
32 self.assertTrue(eval("-" + nines) == -(10**32-1))
33 self.assertTrue(eval("~" + nines) == ~(10**32-1))
Dtest_abc.py21 self.assertTrue(foo.__isabstractmethod__)
38 self.assertTrue(foo.__isabstractmethod__)
56 self.assertTrue(foo.__isabstractmethod__)
90 self.assertTrue(foo.__isabstractmethod__)
98 self.assertTrue(foo.__isabstractmethod__)
116 self.assertTrue(foo.__isabstractmethod__)
136 self.assertTrue(foo.__isabstractmethod__)
181 self.assertTrue(isabstract(C))
186 self.assertTrue(isabstract(D))
197 self.assertTrue(isabstract(F))
[all …]
/third_party/icu/icu4c/source/test/intltest/
Ducdtest.cpp470 assertTrue("not encoded, no sample", sample.isEmpty()); in TestScriptMetadata()
474 assertTrue("not encoded, no characters", scriptSet.isEmpty()); in TestScriptMetadata()
498 assertTrue("Hani breaks between letters", uscript_breaksBetweenLetters(USCRIPT_HAN)); in TestScriptMetadata()
499 assertTrue("Thai breaks between letters", uscript_breaksBetweenLetters(USCRIPT_THAI)); in TestScriptMetadata()
515 assertTrue("bpt!=None is not empty", !bpt.isEmpty()); in TestBidiPairedBracketType()
519 assertTrue("bpt!=None is a subset of Bidi_M", mirrored.containsAll(bpt)); in TestBidiPairedBracketType()
520 assertTrue("bpt!=None is a subset of bc=ON", other_neutral.containsAll(bpt)); in TestBidiPairedBracketType()
526 assertTrue("bpt=Open is a subset of Ps", ps.containsAll(bpt_open)); in TestBidiPairedBracketType()
527 assertTrue("bpt=Close is a subset of Pe", pe.containsAll(bpt_close)); in TestBidiPairedBracketType()
532 assertTrue("shooting star is Emoji", u_hasBinaryProperty(0x1F320, UCHAR_EMOJI)); in TestEmojiProperties()
[all …]
/third_party/libinput/tools/
Dlibinput-record-verify-yaml.py78 self.assertTrue(isinstance(version, int))
83 self.assertTrue(isinstance(ndevices, int))
90 self.assertTrue(isinstance(version, str))
93 self.assertTrue(isinstance(git, str))
99 self.assertTrue(isinstance(kernel, str))
103 self.assertTrue(isinstance(dmi, str))
128 self.assertTrue(isinstance(name, str))
136 self.assertTrue(isinstance(id, list))
146 self.assertTrue(isinstance(properties, list))
152 self.assertTrue(isinstance(hid, list))
[all …]
/third_party/python/Lib/test/test_asyncio/
Dtest_locks.py26 self.assertTrue(repr(lock).endswith('[unlocked]>'))
27 self.assertTrue(RGX_REPR.match(repr(lock)))
30 self.assertTrue(repr(lock).endswith('[locked]>'))
31 self.assertTrue(RGX_REPR.match(repr(lock)))
97 self.assertTrue(await lock.acquire())
137 self.assertTrue(t1.done())
138 self.assertTrue(t1.result())
139 self.assertTrue(t2.done())
140 self.assertTrue(t2.result())
141 self.assertTrue(t3.done())
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/
DTestUnicodeKnownIssues.java8 import static org.junit.Assert.assertTrue;
29 assertTrue(l.get(0) + "#0 says Known Issues", l.get(0).contains("Known Issues")); in TestBasic()
30 assertTrue(l.get(1) + "#1 has atlassian URL", l.get(1).contains("browse/ICU-21756")); in TestBasic()
31 assertTrue(l.get(2) + "#2 says a/b/c", l.get(2).contains("a/b/c")); in TestBasic()
43 assertTrue(l.get(0) + "#0 says Known Issues", l.get(0).contains("Known Issues")); in TestNotCurtailed()
44 assertTrue(l.get(1) + "#1 has atlassian URL", l.get(1).contains("browse/ICU-21756")); in TestNotCurtailed()
46 assertTrue(l.get(2) + "#2 says a/b/c", l.get(2).contains("a/b/c")); in TestNotCurtailed()
47 assertTrue(l.get(3) + "#3 says d/e/f", l.get(3).contains("d/e/f")); in TestNotCurtailed()
48 assertTrue(l.get(4) + "#4 says g/h/i", l.get(4).contains("g/h/i")); in TestNotCurtailed()
60 assertTrue(l.get(0) + "#0 says Known Issues", l.get(0).contains("Known Issues")); in TestCurtailed()
[all …]
/third_party/libphonenumber/tools/java/cpp-build/test/com/google/i18n/phonenumbers/
DCppMetadataGeneratorTest.java20 import static org.junit.Assert.assertTrue;
68 assertTrue(consumeUntil(" * Copyright (C) 2011 The Libphonenumber Authors", lines)); in outputHeaderFile()
69 assertTrue(consumeUntil("#ifndef I18N_PHONENUMBERS_METADATA_H_", lines)); in outputHeaderFile()
70 assertTrue(consumeUntil("#define I18N_PHONENUMBERS_METADATA_H_", lines)); in outputHeaderFile()
71 assertTrue(consumeUntil("namespace i18n {", lines)); in outputHeaderFile()
72 assertTrue(consumeUntil("namespace phonenumbers {", lines)); in outputHeaderFile()
73 assertTrue(consumeUntil("int metadata_size();", lines)); in outputHeaderFile()
74 assertTrue(consumeUntil("const void* metadata_get();", lines)); in outputHeaderFile()
75 assertTrue(consumeUntil("#endif // I18N_PHONENUMBERS_METADATA_H_", lines)); in outputHeaderFile()
87 assertTrue(consumeUntil(" * Copyright (C) 2012 The Libphonenumber Authors", lines)); in outputSourceFile()
[all …]
DBuildMetadataCppFromXmlTest.java21 import static org.junit.Assert.assertTrue;
66 assertTrue(e.getMessage().contains("MyCommand")); in parseBadOptions()
91 assertTrue(headerString.contains("const void* metadata_get()")); in generateMetadata()
92 assertTrue(headerString.contains("int metadata_size()")); in generateMetadata()
94 assertTrue(sourceString.contains("const void* metadata_get()")); in generateMetadata()
95 assertTrue(sourceString.contains("int metadata_size()")); in generateMetadata()
96 assertTrue(sourceString.contains(CPP_TEST_DATA)); in generateMetadata()
110 assertTrue(headerString.contains("const void* metadata_get()")); in generateLiteMetadata()
111 assertTrue(headerString.contains("int metadata_size()")); in generateLiteMetadata()
113 assertTrue(sourceString.contains("const void* metadata_get()")); in generateLiteMetadata()
[all …]
/third_party/googletest/googletest/test/
Dgoogletest-catch-exceptions-test.py120 self.assertTrue(
134 self.assertTrue(
139 self.assertTrue(
144 self.assertTrue(
147 self.assertTrue(
167 self.assertTrue(
172 self.assertTrue(
175 self.assertTrue(
178 self.assertTrue(
181 self.assertTrue(
[all …]
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil_test.js271 assertTrue(metadata.hasNationalPrefix());
346 assertTrue(phoneUtil.isNumberGeographical(AU_NUMBER));
352 assertTrue(phoneUtil.isNumberGeographical(AR_MOBILE));
354 assertTrue(phoneUtil.isNumberGeographical(MX_MOBILE1));
356 assertTrue(phoneUtil.isNumberGeographical(MX_MOBILE2));
450 assertTrue(phoneUtil.getSupportedRegions().length > 0);
451 assertTrue(phoneUtil.getSupportedRegions().includes(RegionCode.US));
457 assertTrue(phoneUtil.getSupportedGlobalNetworkCallingCodes().length > 0);
459 assertTrue(phoneUtil.getSupportedGlobalNetworkCallingCodes().includes(800));
469 assertTrue(phoneUtil.getSupportedCallingCodes().length > 0);
[all …]
Dshortnumberinfo_test.js51 assertTrue(shortInfo.isPossibleShortNumber(possibleNumber));
52 assertTrue(shortInfo.isPossibleShortNumberForRegion(
65 assertTrue(shortInfo.isPossibleShortNumber(impossibleUkNumber));
72 assertTrue(shortInfo.isValidShortNumber(shortNumber1));
73 assertTrue(shortInfo.isValidShortNumberForRegion(
86 assertTrue(shortInfo.isValidShortNumber(shortNumber3));
93 assertTrue(shortInfo.isCarrierSpecific(carrierSpecificNumber));
94 assertTrue(shortInfo.isCarrierSpecificForRegion(
107 assertTrue(shortInfo.isCarrierSpecific(carrierSpecificNumberForSomeRegion));
108 assertTrue(shortInfo.isCarrierSpecificForRegion(
[all …]
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DShortNumberInfoTest.java32 assertTrue(shortInfo.isPossibleShortNumber(possibleNumber)); in testIsPossibleShortNumber()
33 assertTrue( in testIsPossibleShortNumber()
42 assertTrue(shortInfo.isPossibleShortNumber( in testIsPossibleShortNumber()
47 assertTrue(shortInfo.isValidShortNumber( in testIsValidShortNumber()
49 assertTrue(shortInfo.isValidShortNumberForRegion(parse("1010", RegionCode.FR), RegionCode.FR)); in testIsValidShortNumber()
56 assertTrue(shortInfo.isValidShortNumber( in testIsValidShortNumber()
63 assertTrue(shortInfo.isCarrierSpecific(carrierSpecificNumber)); in testIsCarrierSpecific()
64 assertTrue( in testIsCarrierSpecific()
75 assertTrue(shortInfo.isCarrierSpecific(carrierSpecificNumberForSomeRegion)); in testIsCarrierSpecific()
76 assertTrue( in testIsCarrierSpecific()
[all …]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DFieldPresenceTest.java63 assertTrue(hasMethod(classWithFieldPresence, "get" + camelName)); in assertHasMethodRemoved()
64 assertTrue(hasMethod(classWithFieldPresence, "has" + camelName)); in assertHasMethodRemoved()
65 assertTrue(hasMethod(classWithoutFieldPresence, "get" + camelName)); in assertHasMethodRemoved()
121 assertTrue(builder.hasOptionalInt32()); in testHasMethodForProto3Optional()
122 assertTrue(builder.build().hasOptionalInt32()); in testHasMethodForProto3Optional()
126 assertTrue(otherBuilder.hasOptionalInt32()); in testHasMethodForProto3Optional()
131 assertTrue(builder3.hasOptionalNestedEnum()); in testHasMethodForProto3Optional()
135 assertTrue(builder4.hasOptionalNestedEnum()); in testHasMethodForProto3Optional()
138 assertTrue(proto.hasOptionalInt32()); in testHasMethodForProto3Optional()
139 assertTrue(proto.toBuilder().hasOptionalInt32()); in testHasMethodForProto3Optional()
[all …]
DByteStringTest.java108 assertTrue("ByteString(app) < ByteString(apple)", comparator.compare(app, apple) < 0); in testCompare_byteStringsSortLexicographically()
109 assertTrue("ByteString(app) < ByteString(banana)", comparator.compare(app, banana) < 0); in testCompare_byteStringsSortLexicographically()
110 assertTrue("ByteString(apple) < ByteString(banana)", comparator.compare(apple, banana) < 0); in testCompare_byteStringsSortLexicographically()
119 assertTrue( in testCompare_interpretsByteValuesAsUnsigned()
127 assertTrue( in testSubstring_BeginIndex()
135 assertTrue( in testCopyFrom_BytesOffsetSize()
143 assertTrue( in testCopyFrom_Bytes()
153 assertTrue( in testCopyFrom_ByteBufferSize()
164 assertTrue( in testCopyFrom_ByteBuffer()
173 assertTrue( in testCopyFrom_StringEncoding()
[all …]
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dmessage_test.py146 self.assertTrue(IsPosInf(golden_message.optional_float))
147 self.assertTrue(IsPosInf(golden_message.optional_double))
148 self.assertTrue(IsPosInf(golden_message.repeated_float[0]))
149 self.assertTrue(IsPosInf(golden_message.repeated_double[0]))
159 self.assertTrue(IsNegInf(golden_message.optional_float))
160 self.assertTrue(IsNegInf(golden_message.optional_double))
161 self.assertTrue(IsNegInf(golden_message.repeated_float[0]))
162 self.assertTrue(IsNegInf(golden_message.repeated_double[0]))
172 self.assertTrue(isnan(golden_message.optional_float))
173 self.assertTrue(isnan(golden_message.optional_double))
[all …]
Dgenerator_test.py94 self.assertTrue(isinf(message.inf_double))
95 self.assertTrue(message.inf_double > 0)
96 self.assertTrue(isinf(message.neg_inf_double))
97 self.assertTrue(message.neg_inf_double < 0)
98 self.assertTrue(isnan(message.nan_double))
100 self.assertTrue(isinf(message.inf_float))
101 self.assertTrue(message.inf_float > 0)
102 self.assertTrue(isinf(message.neg_inf_float))
103 self.assertTrue(message.neg_inf_float < 0)
104 self.assertTrue(isnan(message.nan_float))
[all …]
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DLiteralByteStringTest.java80 assertTrue(classUnderTest + " must capture the right bytes", stillEqual); in testByteAt()
89 assertTrue(classUnderTest + " must capture the right bytes", stillEqual); in testByteIterator()
107 assertTrue(classUnderTest + " must capture the right bytes as Bytes", stillEqual); in testByteIterable()
126 assertTrue(classUnderTest + ".copyTo(4 arg) must give the expected bytes", stillEqual); in testCopyTo_ByteArrayOffsetLength()
193 assertTrue(classUnderTest + ".copyTo(ByteBuffer) must give back the same bytes", in testCopyTo_ByteBuffer()
200 assertTrue(byteBuffer.remaining() == referenceBytes.length); in testAsReadOnlyByteBuffer()
201 assertTrue(byteBuffer.isReadOnly()); in testAsReadOnlyByteBuffer()
203 assertTrue(classUnderTest + ".asReadOnlyByteBuffer() must give back the same bytes", in testAsReadOnlyByteBuffer()
213 assertTrue(byteBuffer.isReadOnly()); in testAsReadOnlyByteBufferList()
214 assertTrue(bytesSeen + thisLength <= referenceBytes.length); in testAsReadOnlyByteBufferList()
[all …]
DByteStringTest.java93 assertTrue("substring must contain the tail of the string", in testSubstring_BeginIndex()
100 assertTrue("copyFrom sub-range must contain the expected bytes", in testCopyFrom_BytesOffsetSize()
107 assertTrue("copyFrom must contain the expected bytes", in testCopyFrom_Bytes()
117 assertTrue("copyFrom byteBuffer sub-range must contain the expected bytes", in testCopyFrom_ByteBufferSize()
127 assertTrue("copyFrom byteBuffer sub-range must contain the expected bytes", in testCopyFrom_ByteBuffer()
135 assertTrue("copyFrom string must respect the charset", in testCopyFrom_StringEncoding()
143 assertTrue("copyFromUtf8 string must respect the charset", in testCopyFrom_Utf8()
152 assertTrue("copyFrom a List must contain the expected bytes", in testCopyFrom_Iterable()
169 assertTrue("copyFrom byteBuffer sub-range must contain the expected bytes", in testCopyTo_TargetOffset()
196 assertTrue("copyFrom byteBuffer must not grant access to underlying array", in testReadFrom_mutating()
[all …]

12345678910>>...32