/third_party/typescript/src/testRunner/unittests/ |
D | semver.ts | 59 … assert.strictEqual(new Version("1.0.0").compareTo(new Version("2.0.0")), Comparison.LessThan); 60 … assert.strictEqual(new Version("1.0.0").compareTo(new Version("1.1.0")), Comparison.LessThan); 61 … assert.strictEqual(new Version("1.0.0").compareTo(new Version("1.0.1")), Comparison.LessThan); 62 … assert.strictEqual(new Version("2.0.0").compareTo(new Version("1.0.0")), Comparison.GreaterThan); 63 … assert.strictEqual(new Version("1.1.0").compareTo(new Version("1.0.0")), Comparison.GreaterThan); 64 … assert.strictEqual(new Version("1.0.1").compareTo(new Version("1.0.0")), Comparison.GreaterThan); 65 … assert.strictEqual(new Version("1.0.0").compareTo(new Version("1.0.0")), Comparison.EqualTo); 70 …assert.strictEqual(new Version("1.0.0").compareTo(new Version("1.0.0-pre")), Comparison.GreaterTha… 71 …assert.strictEqual(new Version("1.0.1-pre").compareTo(new Version("1.0.0")), Comparison.GreaterTha… 72 … assert.strictEqual(new Version("1.0.0-pre").compareTo(new Version("1.0.0")), Comparison.LessThan); [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | implicitAnyGenericTypeInference.types | 3 compareTo<U>(x: T, y: U): U; 4 >compareTo : <U>(x: T, y: U) => U 12 c = { compareTo: (x, y) => { return y; } }; 13 >c = { compareTo: (x, y) => { return y; } } : { compareTo: <U>(x: any, y: U) => U; } 15 >{ compareTo: (x, y) => { return y; } } : { compareTo: <U>(x: any, y: U) => U; } 16 >compareTo : <U>(x: any, y: U) => U 22 var r = c.compareTo(1, ''); 24 >c.compareTo(1, '') : "" 25 >c.compareTo : <U>(x: any, y: U) => U 27 >compareTo : <U>(x: any, y: U) => U
|
D | maxConstraints.types | 3 compareTo(other: T): number; 4 >compareTo : (other: T) => number 12 var max2: Comparer = (x, y) => { return (x.compareTo(y) > 0) ? x : y }; 14 >(x, y) => { return (x.compareTo(y) > 0) ? x : y } : <T extends Comparable<T>>(x: T, y: T) => T 17 >(x.compareTo(y) > 0) ? x : y : T 18 >(x.compareTo(y) > 0) : boolean 19 >x.compareTo(y) > 0 : boolean 20 >x.compareTo(y) : number 21 >x.compareTo : (other: T) => number 23 >compareTo : (other: T) => number
|
D | implicitAnyGenericTypeInference.symbols | 6 compareTo<U>(x: T, y: U): U; 7 >compareTo : Symbol(Comparer.compareTo, Decl(implicitAnyGenericTypeInference.ts, 0, 23)) 20 c = { compareTo: (x, y) => { return y; } }; 22 >compareTo : Symbol(compareTo, Decl(implicitAnyGenericTypeInference.ts, 5, 5)) 27 var r = c.compareTo(1, ''); 29 >c.compareTo : Symbol(Comparer.compareTo, Decl(implicitAnyGenericTypeInference.ts, 0, 23)) 31 >compareTo : Symbol(Comparer.compareTo, Decl(implicitAnyGenericTypeInference.ts, 0, 23))
|
D | protoAssignment.symbols | 5 compareTo(other: number); 6 >compareTo : Symbol(Number.compareTo, Decl(protoAssignment.ts, 0, 45)) 11 Number.prototype.compareTo = function (other: number) { 12 >Number.prototype.compareTo : Symbol(Number.compareTo, Decl(protoAssignment.ts, 0, 45)) 16 >compareTo : Symbol(Number.compareTo, Decl(protoAssignment.ts, 0, 45))
|
D | maxConstraints.symbols | 6 compareTo(other: T): number; 7 >compareTo : Symbol(Comparable.compareTo, Decl(maxConstraints.ts, 0, 25)) 24 var max2: Comparer = (x, y) => { return (x.compareTo(y) > 0) ? x : y }; 29 >x.compareTo : Symbol(Comparable.compareTo, Decl(maxConstraints.ts, 0, 25)) 31 >compareTo : Symbol(Comparable.compareTo, Decl(maxConstraints.ts, 0, 25))
|
D | implicitAnyGenericTypeInference.js | 3 compareTo<U>(x: T, y: U): U; 7 c = { compareTo: (x, y) => { return y; } }; method 8 var r = c.compareTo(1, ''); 12 c = { compareTo: function (x, y) { return y; } }; method 13 var r = c.compareTo(1, '');
|
D | protoAssignment.types | 4 compareTo(other: number); 5 >compareTo : (other: number) => any 10 Number.prototype.compareTo = function (other: number) { 11 >Number.prototype.compareTo = function (other: number) { return this.valueOf() == other;} : (othe… 12 >Number.prototype.compareTo : (other: number) => any 16 >compareTo : (other: number) => any
|
D | protoAssignment.js | 4 compareTo(other: number); 8 Number.prototype.compareTo = function (other: number) { method in Number 18 Number.prototype.compareTo = function (other) { method in Number
|
D | maxConstraints.js | 3 compareTo(other: T): number; 8 var max2: Comparer = (x, y) => { return (x.compareTo(y) > 0) ? x : y }; 12 var max2 = function (x, y) { return (x.compareTo(y) > 0) ? x : y; };
|
D | genericAssignmentCompatWithInterfaces1.symbols | 6 compareTo(other: T): number; 7 >compareTo : Symbol(Comparable.compareTo, Decl(genericAssignmentCompatWithInterfaces1.ts, 0, 25)) 29 class A<T> implements Comparable<T> { compareTo(other: T) { return 1; } } 34 >compareTo : Symbol(A.compareTo, Decl(genericAssignmentCompatWithInterfaces1.ts, 9, 37))
|
D | genericAssignmentCompatWithInterfaces1.js | 3 compareTo(other: T): number; 11 class A<T> implements Comparable<T> { compareTo(other: T) { return 1; } } method in A 26 A.prototype.compareTo = function (other) { return 1; }; method in A
|
/third_party/flutter/flutter/packages/flutter/test/painting/ |
D | text_span_test.dart | 158 expect(textSpan1.compareTo(textSpan3), RenderComparison.layout); 159 expect(textSpan1.compareTo(textSpan4), RenderComparison.layout); 160 expect(textSpan1.compareTo(textSpan1), RenderComparison.identical); 161 expect(textSpan2.compareTo(textSpan2), RenderComparison.identical); 162 expect(textSpan3.compareTo(textSpan3), RenderComparison.identical); 163 expect(textSpan2.compareTo(textSpan3), RenderComparison.layout); 164 expect(textSpan4.compareTo(textSpan5), RenderComparison.layout); 165 expect(textSpan3.compareTo(textSpan5), RenderComparison.layout); 166 expect(textSpan2.compareTo(textSpan5), RenderComparison.layout); 167 expect(textSpan1.compareTo(textSpan5), RenderComparison.layout); [all …]
|
/third_party/flutter/flutter/packages/flutter_tools/lib/src/base/ |
D | version.dart | 91 bool operator <(Version other) => compareTo(other) < 0; 92 bool operator >(Version other) => compareTo(other) > 0; 93 bool operator <=(Version other) => compareTo(other) <= 0; 94 bool operator >=(Version other) => compareTo(other) >= 0; 97 int compareTo(Version other) { 99 return major.compareTo(other.major); 101 return minor.compareTo(other.minor); 102 return patch.compareTo(other.patch);
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | VersionInfoTest.java | 96 if (v1.compareTo(v2) == 0) { in TestCompare() 104 if (v1.compareTo(v2) == 0) { in TestCompare() 114 if (v1.compareTo(v2) != 0) { in TestCompare() 122 if (v1.compareTo(v2) != 0) { in TestCompare() 130 if (v1.compareTo(v2) >= 0) { in TestCompare() 134 if (v2.compareTo(v1) <= 0) { in TestCompare() 146 assertTrue(small + " < " + large, small.compareTo(large) < 0); in TestCompareLarge() 150 assertTrue(small + " < " + large, small.compareTo(large) < 0); in TestCompareLarge() 213 if (v1.compareTo(v2) == 0) { in TestComparable() 221 if (v1.compareTo(v2) != 0) { in TestComparable()
|
/third_party/typescript/tests/cases/compiler/ |
D | implicitAnyGenericTypeInference.ts | 4 compareTo<U>(x: T, y: U): U; method 8 c = { compareTo: (x, y) => { return y; } }; 9 var r = c.compareTo(1, '');
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | Scale.java | 45 arbitrary.compareTo(BigDecimal.ZERO) == 0 in Scale() 60 if (arbitrary != null && BigDecimal.ZERO.compareTo(arbitrary) != 0) { in Scale() 108 if (multiplicand.compareTo(BigDecimal.ONE) == 0) { in byBigDecimal() 110 } else if (multiplicand.compareTo(BIG_DECIMAL_100) == 0) { in byBigDecimal() 112 } else if (multiplicand.compareTo(BIG_DECIMAL_1000) == 0) { in byBigDecimal()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | Scale.java | 44 arbitrary.compareTo(BigDecimal.ZERO) == 0 in Scale() 59 if (arbitrary != null && BigDecimal.ZERO.compareTo(arbitrary) != 0) { in Scale() 110 if (multiplicand.compareTo(BigDecimal.ONE) == 0) { in byBigDecimal() 112 } else if (multiplicand.compareTo(BIG_DECIMAL_100) == 0) { in byBigDecimal() 114 } else if (multiplicand.compareTo(BIG_DECIMAL_1000) == 0) { in byBigDecimal()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | mnkytst.cpp | 97 int32_t result = collationKey1.compareTo(collationKey2); // Tertiary in TestCollationKey() 98 int32_t revResult = collationKey2.compareTo(collationKey1); // Tertiary in TestCollationKey() 104 result = collationKey1.compareTo(collationKey2); // Secondary in TestCollationKey() 105 revResult = collationKey2.compareTo(collationKey1); // Secondary in TestCollationKey() 111 result = collationKey1.compareTo(collationKey2); // Primary in TestCollationKey() 112 revResult = collationKey2.compareTo(collationKey1); // Primary in TestCollationKey() 121 result = collationKey1.compareTo(collationKey2); in TestCollationKey() 133 result = collationKey2.compareTo(collationKey1); in TestCollationKey()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
D | VersionInfoTest.java | 99 if (v1.compareTo(v2) == 0) { in TestCompare() 107 if (v1.compareTo(v2) == 0) { in TestCompare() 117 if (v1.compareTo(v2) != 0) { in TestCompare() 125 if (v1.compareTo(v2) != 0) { in TestCompare() 133 if (v1.compareTo(v2) >= 0) { in TestCompare() 137 if (v2.compareTo(v1) <= 0) { in TestCompare() 204 if (v1.compareTo(v2) == 0) { in TestComparable() 212 if (v1.compareTo(v2) != 0) { in TestComparable()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/ |
D | CollationMonkeyTest.java | 71 int result = collationKey1.compareTo(collationKey2); // Tertiary in TestCollationKey() 72 int revResult = collationKey2.compareTo(collationKey1); // Tertiary in TestCollationKey() 78 result = collationKey1.compareTo(collationKey2); // Secondary in TestCollationKey() 79 revResult = collationKey2.compareTo(collationKey1); // Secondary in TestCollationKey() 85 result = collationKey1.compareTo(collationKey2); // Primary in TestCollationKey() 86 revResult = collationKey2.compareTo(collationKey1); // Primary in TestCollationKey() 94 result = collationKey1.compareTo(collationKey2); in TestCollationKey() 105 result = collationKey2.compareTo(collationKey1); in TestCollationKey() 250 int keyResult = sortKey1.compareTo(sortKey2); in doTest()
|
D | CollationFrozenMonkeyTest.java | 85 int result = collationKey1.compareTo(collationKey2); // Tertiary in TestCollationKey() 86 int revResult = collationKey2.compareTo(collationKey1); // Tertiary in TestCollationKey() 91 result = collationKey1.compareTo(collationKey2); // Secondary in TestCollationKey() 92 revResult = collationKey2.compareTo(collationKey1); // Secondary in TestCollationKey() 97 result = collationKey1.compareTo(collationKey2); // Primary in TestCollationKey() 98 revResult = collationKey2.compareTo(collationKey1); // Primary in TestCollationKey() 106 result = collationKey1.compareTo(collationKey2); in TestCollationKey() 117 result = collationKey2.compareTo(collationKey1); in TestCollationKey() 275 int keyResult = sortKey1.compareTo(sortKey2); in doTest()
|
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationMonkeyTest.java | 68 int result = collationKey1.compareTo(collationKey2); // Tertiary in TestCollationKey() 69 int revResult = collationKey2.compareTo(collationKey1); // Tertiary in TestCollationKey() 75 result = collationKey1.compareTo(collationKey2); // Secondary in TestCollationKey() 76 revResult = collationKey2.compareTo(collationKey1); // Secondary in TestCollationKey() 82 result = collationKey1.compareTo(collationKey2); // Primary in TestCollationKey() 83 revResult = collationKey2.compareTo(collationKey1); // Primary in TestCollationKey() 91 result = collationKey1.compareTo(collationKey2); in TestCollationKey() 102 result = collationKey2.compareTo(collationKey1); in TestCollationKey() 247 int keyResult = sortKey1.compareTo(sortKey2); in doTest()
|
D | CollationFrozenMonkeyTest.java | 82 int result = collationKey1.compareTo(collationKey2); // Tertiary in TestCollationKey() 83 int revResult = collationKey2.compareTo(collationKey1); // Tertiary in TestCollationKey() 88 result = collationKey1.compareTo(collationKey2); // Secondary in TestCollationKey() 89 revResult = collationKey2.compareTo(collationKey1); // Secondary in TestCollationKey() 94 result = collationKey1.compareTo(collationKey2); // Primary in TestCollationKey() 95 revResult = collationKey2.compareTo(collationKey1); // Primary in TestCollationKey() 103 result = collationKey1.compareTo(collationKey2); in TestCollationKey() 114 result = collationKey2.compareTo(collationKey1); in TestCollationKey() 272 int keyResult = sortKey1.compareTo(sortKey2); in doTest()
|
/third_party/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
D | APIInfo.java | 340 int result = lhi.pack.compareTo(rhi.pack); in defaultComparator() 343 … .compareTo(rhi.getVal(CAT) == CAT_CLASS || rhi.getVal(CAT) == CAT_ENUM ? rhi.name : rhi.cls); in defaultComparator() 347 result = lhi.name.compareTo(rhi.name); in defaultComparator() 349 result = lhi.sig.compareTo(rhi.sig); in defaultComparator() 372 int result = lhi.pack.compareTo(rhi.pack); in changedComparator() 375 .compareTo(rhi.getVal(CAT) == CAT_CLASS ? rhi.name : rhi.cls); in changedComparator() 379 result = lhi.name.compareTo(rhi.name); in changedComparator() 383 result = lhi.sig.compareTo(rhi.sig); in changedComparator() 405 int result = lhi.pack.compareTo(rhi.pack); in classFirstComparator() 411 result = (lcls ? lhi.name : lhi.cls).compareTo( in classFirstComparator() [all …]
|