Home
last modified time | relevance | path

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

12345678910>>...25

/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DAsYouTypeFormatterTest.java31 assertEquals("+", formatter.inputDigit('+')); in testInvalidRegion()
32 assertEquals("+4", formatter.inputDigit('4')); in testInvalidRegion()
33 assertEquals("+48 ", formatter.inputDigit('8')); in testInvalidRegion()
34 assertEquals("+48 8", formatter.inputDigit('8')); in testInvalidRegion()
35 assertEquals("+48 88", formatter.inputDigit('8')); in testInvalidRegion()
36 assertEquals("+48 88 1", formatter.inputDigit('1')); in testInvalidRegion()
37 assertEquals("+48 88 12", formatter.inputDigit('2')); in testInvalidRegion()
38 assertEquals("+48 88 123", formatter.inputDigit('3')); in testInvalidRegion()
39 assertEquals("+48 88 123 1", formatter.inputDigit('1')); in testInvalidRegion()
40 assertEquals("+48 88 123 12", formatter.inputDigit('2')); in testInvalidRegion()
[all …]
DPhoneNumberUtilTest.java143 assertEquals(RegionCode.UN001, phoneUtil.getRegionCodeForCountryCode(callingCode)); in testGetSupportedGlobalNetworkCallingCodes()
184 assertEquals(0, phoneUtil.getSupportedTypesForRegion(RegionCode.ZZ).size()); in testGetSupportedTypesForRegion()
189 assertEquals(0, phoneUtil.getSupportedTypesForNonGeoEntity(999).size()); in testGetSupportedTypesForNonGeoEntity()
199 assertEquals("US", metadata.getId()); in testGetInstanceLoadUSMetadata()
200 assertEquals(1, metadata.getCountryCode()); in testGetInstanceLoadUSMetadata()
201 assertEquals("011", metadata.getInternationalPrefix()); in testGetInstanceLoadUSMetadata()
203 assertEquals(2, metadata.getNumberFormatCount()); in testGetInstanceLoadUSMetadata()
204 assertEquals("(\\d{3})(\\d{3})(\\d{4})", in testGetInstanceLoadUSMetadata()
206 assertEquals("$1 $2 $3", metadata.getNumberFormat(1).getFormat()); in testGetInstanceLoadUSMetadata()
207 assertEquals("[13-689]\\d{9}|2[0-35-9]\\d{8}", in testGetInstanceLoadUSMetadata()
[all …]
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dasyoutypeformatter_test.js39 assertEquals('+', f.inputDigit('+'));
40 assertEquals('+4', f.inputDigit('4'));
41 assertEquals('+48 ', f.inputDigit('8'));
42 assertEquals('+48 8', f.inputDigit('8'));
43 assertEquals('+48 88', f.inputDigit('8'));
44 assertEquals('+48 88 1', f.inputDigit('1'));
45 assertEquals('+48 88 12', f.inputDigit('2'));
46 assertEquals('+48 88 123', f.inputDigit('3'));
47 assertEquals('+48 88 123 1', f.inputDigit('1'));
48 assertEquals('+48 88 123 12', f.inputDigit('2'));
[all …]
Dphonenumberutil_test.js268 assertEquals(RegionCode.US, metadata.getId());
269 assertEquals(1, metadata.getCountryCode());
270 assertEquals('011', metadata.getInternationalPrefix());
272 assertEquals(2, metadata.numberFormatCount());
273 assertEquals(
275 assertEquals('$1 $2 $3', metadata.getNumberFormat(1).getFormat());
276 assertEquals(
279 assertEquals(
282 assertEquals(
292 assertEquals(RegionCode.DE, metadata.getId());
[all …]
/third_party/protobuf/php/tests/
Dtest_base.php48 $this->assertEquals(-42, $m->getRepeatedInt32()[0]);
49 $this->assertEquals(42, $m->getRepeatedUint32()[0]);
50 $this->assertEquals(-43, $m->getRepeatedInt64()[0]);
51 $this->assertEquals(43, $m->getRepeatedUint64()[0]);
52 $this->assertEquals(-44, $m->getRepeatedSint32()[0]);
53 $this->assertEquals(-45, $m->getRepeatedSint64()[0]);
54 $this->assertEquals(46, $m->getRepeatedFixed32()[0]);
55 $this->assertEquals(47, $m->getRepeatedFixed64()[0]);
56 $this->assertEquals(-46, $m->getRepeatedSfixed32()[0]);
57 $this->assertEquals(-47, $m->getRepeatedSfixed64()[0]);
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DNumberFormatSpecificationTest.java34 assertEquals("", "1 234,57", formatFrWithPattern(num, "#,##0.##")); in TestBasicPatterns()
35 assertEquals("", "1234,57", formatFrWithPattern(num, "0.##")); in TestBasicPatterns()
36 assertEquals("", "1235", formatFrWithPattern(num, "0")); in TestBasicPatterns()
37 assertEquals("", "1 234,567", formatFrWithPattern(num, "#,##0.###")); in TestBasicPatterns()
38 assertEquals("", "1234,567", formatFrWithPattern(num, "###0.#####")); in TestBasicPatterns()
39 assertEquals("", "1234,5670", formatFrWithPattern(num, "###0.0000#")); in TestBasicPatterns()
40 assertEquals("", "01234,5670", formatFrWithPattern(num, "00000.0000")); in TestBasicPatterns()
41 assertEquals("", "1 234,57 €", formatFrWithPattern(num, "#,##0.00 ¤")); in TestBasicPatterns()
49 assertEquals("", "34 567,89", format(1234567.89, nf)); in TestNfSetters()
50 assertEquals("", "0 034,56", format(34.56, nf)); in TestNfSetters()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatSpecificationTest.java31 assertEquals("", "1 234,57", formatFrWithPattern(num, "#,##0.##")); in TestBasicPatterns()
32 assertEquals("", "1234,57", formatFrWithPattern(num, "0.##")); in TestBasicPatterns()
33 assertEquals("", "1235", formatFrWithPattern(num, "0")); in TestBasicPatterns()
34 assertEquals("", "1 234,567", formatFrWithPattern(num, "#,##0.###")); in TestBasicPatterns()
35 assertEquals("", "1234,567", formatFrWithPattern(num, "###0.#####")); in TestBasicPatterns()
36 assertEquals("", "1234,5670", formatFrWithPattern(num, "###0.0000#")); in TestBasicPatterns()
37 assertEquals("", "01234,5670", formatFrWithPattern(num, "00000.0000")); in TestBasicPatterns()
38 assertEquals("", "1 234,57 €", formatFrWithPattern(num, "#,##0.00 ¤")); in TestBasicPatterns()
46 assertEquals("", "34 567,89", format(1234567.89, nf)); in TestNfSetters()
47 assertEquals("", "0 034,56", format(34.56, nf)); in TestNfSetters()
[all …]
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DTestUtil.java442 Assert.assertEquals(101 , message.getOptionalInt32 ()); in assertAllFieldsSet()
443 Assert.assertEquals(102 , message.getOptionalInt64 ()); in assertAllFieldsSet()
444 Assert.assertEquals(103 , message.getOptionalUint32 ()); in assertAllFieldsSet()
445 Assert.assertEquals(104 , message.getOptionalUint64 ()); in assertAllFieldsSet()
446 Assert.assertEquals(105 , message.getOptionalSint32 ()); in assertAllFieldsSet()
447 Assert.assertEquals(106 , message.getOptionalSint64 ()); in assertAllFieldsSet()
448 Assert.assertEquals(107 , message.getOptionalFixed32 ()); in assertAllFieldsSet()
449 Assert.assertEquals(108 , message.getOptionalFixed64 ()); in assertAllFieldsSet()
450 Assert.assertEquals(109 , message.getOptionalSfixed32()); in assertAllFieldsSet()
451 Assert.assertEquals(110 , message.getOptionalSfixed64()); in assertAllFieldsSet()
[all …]
DDescriptorsTest.java82 assertEquals(FieldDescriptor.Type.values().length, in testFieldTypeEnumMapping()
86 assertEquals("TYPE_" + type.name(), protoType.name()); in testFieldTypeEnumMapping()
87 assertEquals(type, FieldDescriptor.Type.valueOf(protoType)); in testFieldTypeEnumMapping()
94 assertEquals("google/protobuf/unittest.proto", file.getName()); in testFileDescriptor()
95 assertEquals("protobuf_unittest", file.getPackage()); in testFileDescriptor()
97 assertEquals("UnittestProto", file.getOptions().getJavaOuterClassname()); in testFileDescriptor()
98 assertEquals("google/protobuf/unittest.proto", in testFileDescriptor()
101 assertEquals(Arrays.asList(UnittestImport.getDescriptor()), in testFileDescriptor()
105 assertEquals(messageType, file.getMessageTypes().get(0)); in testFileDescriptor()
106 assertEquals(messageType, file.findMessageTypeByName("TestAllTypes")); in testFileDescriptor()
[all …]
/third_party/protobuf/js/
Dproto3_test.js94 assertEquals(msg.getSingularString(), 'optionalString');
98 assertEquals(msg.getSingularString(), '');
110 assertEquals(msg.getSingularInt32(), 0);
111 assertEquals(msg.getSingularInt64(), 0);
112 assertEquals(msg.getSingularUint32(), 0);
113 assertEquals(msg.getSingularUint64(), 0);
114 assertEquals(msg.getSingularSint32(), 0);
115 assertEquals(msg.getSingularSint64(), 0);
116 assertEquals(msg.getSingularFixed32(), 0);
117 assertEquals(msg.getSingularFixed64(), 0);
[all …]
/third_party/protobuf/java/lite/src/test/java/com/google/protobuf/
DLiteTest.java109 assertEquals(123, message2.getOptionalInt32()); in testLite()
110 assertEquals(1, message2.getRepeatedStringCount()); in testLite()
111 assertEquals("hello", message2.getRepeatedString(0)); in testLite()
112 assertEquals(7, message2.getOptionalNestedMessage().getBb()); in testLite()
149 assertEquals(123, (int) message2.getExtension(UnittestLite.optionalInt32ExtensionLite)); in testLiteExtensions()
150 assertEquals(1, message2.getExtensionCount(UnittestLite.repeatedStringExtensionLite)); in testLiteExtensions()
151 assertEquals(1, message2.getExtension(UnittestLite.repeatedStringExtensionLite).size()); in testLiteExtensions()
152 assertEquals("hello", message2.getExtension(UnittestLite.repeatedStringExtensionLite, 0)); in testLiteExtensions()
153 assertEquals( in testLiteExtensions()
155 assertEquals(7, message2.getExtension(UnittestLite.optionalNestedMessageExtensionLite).getBb()); in testLiteExtensions()
[all …]
/third_party/protobuf/js/compatibility_tests/v3.0.0/
Dproto3_test.js75 assertEquals(msg.getOptionalInt32(), 0);
76 assertEquals(msg.getOptionalInt64(), 0);
77 assertEquals(msg.getOptionalUint32(), 0);
78 assertEquals(msg.getOptionalUint64(), 0);
79 assertEquals(msg.getOptionalSint32(), 0);
80 assertEquals(msg.getOptionalSint64(), 0);
81 assertEquals(msg.getOptionalFixed32(), 0);
82 assertEquals(msg.getOptionalFixed64(), 0);
83 assertEquals(msg.getOptionalSfixed32(), 0);
84 assertEquals(msg.getOptionalSfixed64(), 0);
[all …]
/third_party/protobuf/js/compatibility_tests/v3.1.0/
Dproto3_test.js75 assertEquals(msg.getOptionalInt32(), 0);
76 assertEquals(msg.getOptionalInt64(), 0);
77 assertEquals(msg.getOptionalUint32(), 0);
78 assertEquals(msg.getOptionalUint64(), 0);
79 assertEquals(msg.getOptionalSint32(), 0);
80 assertEquals(msg.getOptionalSint64(), 0);
81 assertEquals(msg.getOptionalFixed32(), 0);
82 assertEquals(msg.getOptionalFixed64(), 0);
83 assertEquals(msg.getOptionalSfixed32(), 0);
84 assertEquals(msg.getOptionalSfixed64(), 0);
[all …]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DTestUtil.java523 Assert.assertEquals(101, message.getOptionalInt32()); in assertAllFieldsSet()
524 Assert.assertEquals(102, message.getOptionalInt64()); in assertAllFieldsSet()
525 Assert.assertEquals(103, message.getOptionalUint32()); in assertAllFieldsSet()
526 Assert.assertEquals(104, message.getOptionalUint64()); in assertAllFieldsSet()
527 Assert.assertEquals(105, message.getOptionalSint32()); in assertAllFieldsSet()
528 Assert.assertEquals(106, message.getOptionalSint64()); in assertAllFieldsSet()
529 Assert.assertEquals(107, message.getOptionalFixed32()); in assertAllFieldsSet()
530 Assert.assertEquals(108, message.getOptionalFixed64()); in assertAllFieldsSet()
531 Assert.assertEquals(109, message.getOptionalSfixed32()); in assertAllFieldsSet()
532 Assert.assertEquals(110, message.getOptionalSfixed64()); in assertAllFieldsSet()
[all …]
DLazyMessageLiteTest.java69 assertEquals(1, outer.getNum()); in testSetValues()
70 assertEquals(421, outer.getNumWithDefault()); in testSetValues()
72 assertEquals(2, outer.getInner().getNum()); in testSetValues()
73 assertEquals(42, outer.getInner().getNumWithDefault()); in testSetValues()
75 assertEquals(3, outer.getInner().getNested().getNum()); in testSetValues()
76 assertEquals(4, outer.getInner().getNested().getNumWithDefault()); in testSetValues()
81 assertEquals(2, outer.getOneofInner().getNum()); in testSetValues()
82 assertEquals(42, outer.getOneofInner().getNumWithDefault()); in testSetValues()
83 assertEquals(3, outer.getOneofInner().getNested().getNum()); in testSetValues()
84 assertEquals(4, outer.getOneofInner().getNested().getNumWithDefault()); in testSetValues()
[all …]
DMapForProto2LiteTest.java89 assertEquals(3, message.getInt32ToInt32Field().size()); in assertMapValuesSet()
90 assertEquals(11, message.getInt32ToInt32Field().get(1).intValue()); in assertMapValuesSet()
91 assertEquals(22, message.getInt32ToInt32Field().get(2).intValue()); in assertMapValuesSet()
92 assertEquals(33, message.getInt32ToInt32Field().get(3).intValue()); in assertMapValuesSet()
94 assertEquals(3, message.getInt32ToStringField().size()); in assertMapValuesSet()
95 assertEquals("11", message.getInt32ToStringField().get(1)); in assertMapValuesSet()
96 assertEquals("22", message.getInt32ToStringField().get(2)); in assertMapValuesSet()
97 assertEquals("33", message.getInt32ToStringField().get(3)); in assertMapValuesSet()
99 assertEquals(3, message.getInt32ToBytesField().size()); in assertMapValuesSet()
100 assertEquals(TestUtil.toBytes("11"), message.getInt32ToBytesField().get(1)); in assertMapValuesSet()
[all …]
DMapLiteTest.java82 assertEquals(usingAccessors, usingMutableMap); in testSetMapValues()
96 assertEquals(3, message.getInt32ToInt32Field().size()); in assertMapValuesSet()
97 assertEquals(11, message.getInt32ToInt32Field().get(1).intValue()); in assertMapValuesSet()
98 assertEquals(22, message.getInt32ToInt32Field().get(2).intValue()); in assertMapValuesSet()
99 assertEquals(33, message.getInt32ToInt32Field().get(3).intValue()); in assertMapValuesSet()
101 assertEquals(3, message.getInt32ToStringField().size()); in assertMapValuesSet()
102 assertEquals("11", message.getInt32ToStringField().get(1)); in assertMapValuesSet()
103 assertEquals("22", message.getInt32ToStringField().get(2)); in assertMapValuesSet()
104 assertEquals("33", message.getInt32ToStringField().get(3)); in assertMapValuesSet()
106 assertEquals(3, message.getInt32ToBytesField().size()); in assertMapValuesSet()
[all …]
DBooleanArrayListTest.java79 assertEquals(4, list.size()); in testModificationWithIteration()
80 assertEquals(true, (boolean) list.get(0)); in testModificationWithIteration()
81 assertEquals(true, (boolean) iterator.next()); in testModificationWithIteration()
83 assertEquals(false, (boolean) iterator.next()); in testModificationWithIteration()
104 assertEquals(true, (boolean) TERTIARY_LIST.get(0)); in testGet()
105 assertEquals(false, (boolean) TERTIARY_LIST.get(1)); in testGet()
106 assertEquals(true, (boolean) TERTIARY_LIST.get(2)); in testGet()
124 assertEquals(true, TERTIARY_LIST.getBoolean(0)); in testGetBoolean()
125 assertEquals(false, TERTIARY_LIST.getBoolean(1)); in testGetBoolean()
126 assertEquals(true, TERTIARY_LIST.getBoolean(2)); in testGetBoolean()
[all …]
DDoubleArrayListTest.java78 assertEquals(4, list.size()); in testModificationWithIteration()
79 assertEquals(1D, (double) list.get(0), 0.0); in testModificationWithIteration()
80 assertEquals(1D, (double) iterator.next(), 0.0); in testModificationWithIteration()
82 assertEquals(2D, (double) iterator.next(), 0.0); in testModificationWithIteration()
103 assertEquals(1D, (double) TERTIARY_LIST.get(0), 0.0); in testGet()
104 assertEquals(2D, (double) TERTIARY_LIST.get(1), 0.0); in testGet()
105 assertEquals(3D, (double) TERTIARY_LIST.get(2), 0.0); in testGet()
123 assertEquals(1D, TERTIARY_LIST.getDouble(0), 0.0); in testGetDouble()
124 assertEquals(2D, TERTIARY_LIST.getDouble(1), 0.0); in testGetDouble()
125 assertEquals(3D, TERTIARY_LIST.getDouble(2), 0.0); in testGetDouble()
[all …]
DFloatArrayListTest.java78 assertEquals(4, list.size()); in testModificationWithIteration()
79 assertEquals(1F, (float) list.get(0), 0.0f); in testModificationWithIteration()
80 assertEquals(1F, (float) iterator.next(), 0.0f); in testModificationWithIteration()
82 assertEquals(2F, (float) iterator.next(), 0.0f); in testModificationWithIteration()
103 assertEquals(1F, (float) TERTIARY_LIST.get(0), 0.0f); in testGet()
104 assertEquals(2F, (float) TERTIARY_LIST.get(1), 0.0f); in testGet()
105 assertEquals(3F, (float) TERTIARY_LIST.get(2), 0.0f); in testGet()
123 assertEquals(1F, TERTIARY_LIST.getFloat(0), 0.0f); in testGetFloat()
124 assertEquals(2F, TERTIARY_LIST.getFloat(1), 0.0f); in testGetFloat()
125 assertEquals(3F, TERTIARY_LIST.getFloat(2), 0.0f); in testGetFloat()
[all …]
DLongArrayListTest.java78 assertEquals(4, list.size()); in testModificationWithIteration()
79 assertEquals(1L, (long) list.get(0)); in testModificationWithIteration()
80 assertEquals(1L, (long) iterator.next()); in testModificationWithIteration()
82 assertEquals(2L, (long) iterator.next()); in testModificationWithIteration()
103 assertEquals(1L, (long) TERTIARY_LIST.get(0)); in testGet()
104 assertEquals(2L, (long) TERTIARY_LIST.get(1)); in testGet()
105 assertEquals(3L, (long) TERTIARY_LIST.get(2)); in testGet()
123 assertEquals(1L, TERTIARY_LIST.getLong(0)); in testGetLong()
124 assertEquals(2L, TERTIARY_LIST.getLong(1)); in testGetLong()
125 assertEquals(3L, TERTIARY_LIST.getLong(2)); in testGetLong()
[all …]
DIntArrayListTest.java78 assertEquals(4, list.size()); in testModificationWithIteration()
79 assertEquals(1, (int) list.get(0)); in testModificationWithIteration()
80 assertEquals(1, (int) iterator.next()); in testModificationWithIteration()
82 assertEquals(2, (int) iterator.next()); in testModificationWithIteration()
103 assertEquals(1, (int) TERTIARY_LIST.get(0)); in testGet()
104 assertEquals(2, (int) TERTIARY_LIST.get(1)); in testGet()
105 assertEquals(3, (int) TERTIARY_LIST.get(2)); in testGet()
123 assertEquals(1, TERTIARY_LIST.getInt(0)); in testGetInt()
124 assertEquals(2, TERTIARY_LIST.getInt(1)); in testGetInt()
125 assertEquals(3, TERTIARY_LIST.getInt(2)); in testGetInt()
[all …]
DTestBadIdentifiers.java62 assertEquals(0, message.getInt32Field1Count()); in testConflictingFieldNames()
63 assertEquals(0, message.getEnumField2Count()); in testConflictingFieldNames()
64 assertEquals(0, message.getStringField3Count()); in testConflictingFieldNames()
65 assertEquals(0, message.getBytesField4Count()); in testConflictingFieldNames()
66 assertEquals(0, message.getMessageField5Count()); in testConflictingFieldNames()
68 assertEquals(0, message.getInt32FieldCount11()); in testConflictingFieldNames()
69 assertEquals(0, message.getEnumFieldCount12().getNumber()); in testConflictingFieldNames()
70 assertEquals("", message.getStringFieldCount13()); in testConflictingFieldNames()
71 assertEquals(ByteString.EMPTY, message.getBytesFieldCount14()); in testConflictingFieldNames()
72 assertEquals(0, message.getMessageFieldCount15().getSerializedSize()); in testConflictingFieldNames()
[all …]
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
Darith_test.js51 assertEquals(a.cmp(b), 0);
52 assertEquals(b.cmp(a), 0);
54 assertEquals(a.cmp(b), 1);
55 assertEquals(b.cmp(a), -1);
57 assertEquals(a.cmp(b), -1);
58 assertEquals(b.cmp(a), 1);
61 assertEquals(a.cmp(b), 1);
62 assertEquals(b.cmp(a), -1);
64 assertEquals(a.zero(), false);
65 assertEquals(a.msb(), false);
[all …]
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
Darith_test.js51 assertEquals(a.cmp(b), 0);
52 assertEquals(b.cmp(a), 0);
54 assertEquals(a.cmp(b), 1);
55 assertEquals(b.cmp(a), -1);
57 assertEquals(a.cmp(b), -1);
58 assertEquals(b.cmp(a), 1);
61 assertEquals(a.cmp(b), 1);
62 assertEquals(b.cmp(a), -1);
64 assertEquals(a.zero(), false);
65 assertEquals(a.msb(), false);
[all …]

12345678910>>...25