/third_party/flutter/flutter/packages/flutter/test/rendering/ |
D | intrinsic_width_test.dart | 58 expect(parent.size.width, equals(100.0)); 59 expect(parent.size.height, equals(110.0)); 61 expect(parent.getMinIntrinsicWidth(0.0), equals(100.0)); 62 expect(parent.getMaxIntrinsicWidth(0.0), equals(100.0)); 63 expect(parent.getMinIntrinsicHeight(0.0), equals(20.0)); 64 expect(parent.getMaxIntrinsicHeight(0.0), equals(200.0)); 66 expect(parent.getMinIntrinsicWidth(10.0), equals(100.0)); 67 expect(parent.getMaxIntrinsicWidth(10.0), equals(100.0)); 68 expect(parent.getMinIntrinsicHeight(10.0), equals(20.0)); 69 expect(parent.getMaxIntrinsicHeight(10.0), equals(200.0)); [all …]
|
D | cached_intrinsics_test.dart | 25 expect(test.getMinIntrinsicWidth(0.0), equals(1.0)); 26 expect(test.getMinIntrinsicWidth(100.0), equals(2.0)); 27 expect(test.getMinIntrinsicWidth(200.0), equals(3.0)); 28 expect(test.getMinIntrinsicWidth(0.0), equals(1.0)); 29 expect(test.getMinIntrinsicWidth(100.0), equals(2.0)); 30 expect(test.getMinIntrinsicWidth(200.0), equals(3.0)); 32 expect(test.getMaxIntrinsicWidth(0.0), equals(4.0)); 33 expect(test.getMaxIntrinsicWidth(100.0), equals(5.0)); 34 expect(test.getMaxIntrinsicWidth(200.0), equals(6.0)); 35 expect(test.getMaxIntrinsicWidth(0.0), equals(4.0)); [all …]
|
D | paragraph_intrinsics_test.dart | 36 expect(paragraph.getMaxIntrinsicHeight(double.infinity), equals(oneLineTextHeight)); 37 expect(paragraph.getMaxIntrinsicHeight(constrainedWidth), equals(twoLinesTextHeight)); 38 expect(paragraph.getMaxIntrinsicHeight(0.0), equals(manyLinesTextHeight)); 41 expect(testBlock.getMinIntrinsicWidth(double.infinity), equals(wrappedTextWidth)); 42 expect(testBlock.getMaxIntrinsicWidth(double.infinity), equals(textWidth)); 43 expect(testBlock.getMinIntrinsicHeight(double.infinity), equals(oneLineTextHeight)); 44 expect(testBlock.getMinIntrinsicHeight(constrainedWidth), equals(twoLinesTextHeight)); 45 expect(testBlock.getMaxIntrinsicHeight(double.infinity), equals(oneLineTextHeight)); 46 expect(testBlock.getMaxIntrinsicHeight(constrainedWidth), equals(twoLinesTextHeight)); 47 expect(testBlock.getMinIntrinsicWidth(0.0), equals(wrappedTextWidth)); [all …]
|
D | transform_test.dart | 25 expect(inner.globalToLocal(const Offset(0.0, 0.0)), equals(const Offset(0.0, 0.0))); 26 expect(inner.globalToLocal(const Offset(100.0, 100.0)), equals(const Offset(100.0, 100.0))); 27 expect(inner.globalToLocal(const Offset(25.0, 75.0)), equals(const Offset(25.0, 75.0))); 28 expect(inner.globalToLocal(const Offset(50.0, 50.0)), equals(const Offset(50.0, 50.0))); 29 expect(inner.localToGlobal(const Offset(0.0, 0.0)), equals(const Offset(0.0, 0.0))); 30 expect(inner.localToGlobal(const Offset(100.0, 100.0)), equals(const Offset(100.0, 100.0))); 31 expect(inner.localToGlobal(const Offset(25.0, 75.0)), equals(const Offset(25.0, 75.0))); 32 expect(inner.localToGlobal(const Offset(50.0, 50.0)), equals(const Offset(50.0, 50.0))); 46 expect(inner.globalToLocal(const Offset(0.0, 0.0)), equals(const Offset(-20.0, 0.0))); 47 expect(inner.globalToLocal(const Offset(100.0, 100.0)), equals(const Offset(80.0, 100.0))); [all …]
|
/third_party/boost/libs/geometry/test/util/ |
D | math_equals.cpp | 24 BOOST_CHECK(bgm::equals(0, 0)); in test_all() 25 BOOST_CHECK(bgm::equals(1, 1)); in test_all() 26 BOOST_CHECK(bgm::equals(123456, 123456)); in test_all() 31 BOOST_CHECK(bgm::equals(0, 0+eps)); in test_all() 32 BOOST_CHECK(bgm::equals(0+eps, 0)); in test_all() 33 BOOST_CHECK(bgm::equals(1, 1+eps)); in test_all() 34 BOOST_CHECK(bgm::equals(1+eps, 1)); in test_all() 35 BOOST_CHECK(bgm::equals(12345+eps, 12345)); in test_all() 41 BOOST_CHECK(!bgm::equals(0, inf)); in test_all() 42 BOOST_CHECK(!bgm::equals(0, -inf)); in test_all() [all …]
|
/third_party/flutter/flutter/packages/flutter/test/foundation/ |
D | caching_iterable_test.dart | 26 expect(yieldCount, equals(0)); 27 expect(i.length, equals(5)); 28 expect(yieldCount, equals(5)); 30 expect(i.length, equals(5)); 31 expect(yieldCount, equals(5)); 33 expect(i.last, equals(5)); 34 expect(yieldCount, equals(5)); 36 expect(i, equals(<int>[1, 2, 3, 4, 5])); 37 expect(yieldCount, equals(5)); 42 expect(yieldCount, equals(0)); [all …]
|
/third_party/boost/boost/geometry/algorithms/detail/equals/ |
D | implementation.hpp | 55 namespace detail { namespace equals namespace 84 … if (!geometry::math::equals(get<min_corner, Dimension>(box1), get<min_corner, Dimension>(box2)) in apply() 85 … || !geometry::math::equals(get<max_corner, Dimension>(box1), get<max_corner, Dimension>(box2))) in apply() 113 return equals::equals_point_point( in apply() 117 ? equals::equals_point_point( in apply() 121 : ( equals::equals_point_point( in apply() 125 && equals::equals_point_point( in apply() 141 return geometry::math::equals( in apply() 157 return geometry::math::equals( in apply() 297 struct equals<P1, P2, point_tag, point_tag, pointlike_tag, pointlike_tag, DimensionCount, Reverse> struct [all …]
|
/third_party/flutter/skia/tests/ |
D | StringTest.cpp | 37 REPORTER_ASSERT(reporter, a.equals("hello", 5)); in DEF_TEST() 38 REPORTER_ASSERT(reporter, a.equals("hello")); in DEF_TEST() 39 REPORTER_ASSERT(reporter, !a.equals("help")); in DEF_TEST() 75 REPORTER_ASSERT(reporter, a.equals("hello world") && a == e && a == f); in DEF_TEST() 88 REPORTER_ASSERT(reporter, a.equals("2147483647")); in DEF_TEST() 91 REPORTER_ASSERT(reporter, a.equals("-2147483647")); in DEF_TEST() 94 REPORTER_ASSERT(reporter, a.equals("-2147483648")); in DEF_TEST() 98 REPORTER_ASSERT(reporter, a.equals("2147483647")); in DEF_TEST() 101 REPORTER_ASSERT(reporter, a.equals("2147483649")); in DEF_TEST() 104 REPORTER_ASSERT(reporter, a.equals("4294967295")); in DEF_TEST() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/ |
D | DiagBigDecimalTest.java | 190 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() 198 …bd001", ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("0"))).toString()).equals("0")); in diagconstructors() 199 …bd002", ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("1"))).toString()).equals("1")); in diagconstructors() 200 …003", ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("10"))).toString()).equals("10")); in diagconstructors() 201 …, ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("1000"))).toString()).equals("1000")); in diagconstructors() 202 …, ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("10.0"))).toString()).equals("10.0")); in diagconstructors() 203 …, ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("10.1"))).toString()).equals("10.1")); in diagconstructors() 204 …, ((new com.ibm.icu.math.BigDecimal(new java.math.BigDecimal("-1.1"))).toString()).equals("-1.1")); in diagconstructors() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/bigdec/ |
D | DiagBigDecimalTest.java | 193 … 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() 201 …1", ((new ohos.global.icu.math.BigDecimal(new java.math.BigDecimal("0"))).toString()).equals("0")); in diagconstructors() 202 …2", ((new ohos.global.icu.math.BigDecimal(new java.math.BigDecimal("1"))).toString()).equals("1")); in diagconstructors() 203 …, ((new ohos.global.icu.math.BigDecimal(new java.math.BigDecimal("10"))).toString()).equals("10")); in diagconstructors() 204 …new ohos.global.icu.math.BigDecimal(new java.math.BigDecimal("1000"))).toString()).equals("1000")); in diagconstructors() 205 …new ohos.global.icu.math.BigDecimal(new java.math.BigDecimal("10.0"))).toString()).equals("10.0")); in diagconstructors() 206 …new ohos.global.icu.math.BigDecimal(new java.math.BigDecimal("10.1"))).toString()).equals("10.1")); in diagconstructors() 207 …new ohos.global.icu.math.BigDecimal(new java.math.BigDecimal("-1.1"))).toString()).equals("-1.1")); in diagconstructors() [all …]
|
/third_party/flutter/flutter/packages/flutter/test/widgets/ |
D | column_test.dart | 36 expect(renderBox.size.width, equals(100.0)); 37 expect(renderBox.size.height, equals(600.0)); 40 expect(renderBox.size.width, equals(100.0)); 41 expect(renderBox.size.height, equals(100.0)); 43 expect(boxParentData.offset.dy, equals(0.0)); 46 expect(renderBox.size.width, equals(100.0)); 47 expect(renderBox.size.height, equals(400.0)); 49 expect(boxParentData.offset.dy, equals(100.0)); 52 expect(renderBox.size.width, equals(100.0)); 53 expect(renderBox.size.height, equals(100.0)); [all …]
|
D | row_test.dart | 306 expect(renderBox.size.width, equals(100.0)); 307 expect(renderBox.size.height, equals(0.0)); 339 expect(renderBox.size.width, equals(800.0)); 340 expect(renderBox.size.height, equals(100.0)); 343 expect(renderBox.size.width, equals(100.0)); 344 expect(renderBox.size.height, equals(100.0)); 346 expect(boxParentData.offset.dx, equals(0.0)); 349 expect(renderBox.size.width, equals(600.0)); 350 expect(renderBox.size.height, equals(100.0)); 352 expect(boxParentData.offset.dx, equals(100.0)); [all …]
|
/third_party/skia/tests/ |
D | StringTest.cpp | 35 REPORTER_ASSERT(reporter, a.equals("hello", 5)); in DEF_TEST() 36 REPORTER_ASSERT(reporter, a.equals("hello")); in DEF_TEST() 37 REPORTER_ASSERT(reporter, !a.equals("help")); in DEF_TEST() 73 REPORTER_ASSERT(reporter, a.equals("hello world") && a == e && a == f); in DEF_TEST() 86 REPORTER_ASSERT(reporter, a.equals("2147483647")); in DEF_TEST() 89 REPORTER_ASSERT(reporter, a.equals("-2147483647")); in DEF_TEST() 92 REPORTER_ASSERT(reporter, a.equals("-2147483648")); in DEF_TEST() 96 REPORTER_ASSERT(reporter, a.equals("2147483647")); in DEF_TEST() 99 REPORTER_ASSERT(reporter, a.equals("2147483649")); in DEF_TEST() 102 REPORTER_ASSERT(reporter, a.equals("4294967295")); in DEF_TEST() [all …]
|
/third_party/flutter/flutter/packages/flutter/test/material/ |
D | chip_theme_test.dart | 62 expect(chipTheme.backgroundColor, equals(Colors.black.withAlpha(0x1f))); 63 expect(chipTheme.selectedColor, equals(Colors.black.withAlpha(0x3d))); 64 expect(chipTheme.deleteIconColor, equals(Colors.black.withAlpha(0xde))); 180 expect(lightTheme.backgroundColor, equals(Colors.black.withAlpha(0x1f))); 181 expect(lightTheme.deleteIconColor, equals(Colors.black.withAlpha(0xde))); 182 expect(lightTheme.disabledColor, equals(Colors.black.withAlpha(0x0c))); 183 expect(lightTheme.selectedColor, equals(Colors.black.withAlpha(0x3d))); 184 expect(lightTheme.secondarySelectedColor, equals(customColor1.withAlpha(0x3d))); 185 expect(lightTheme.labelPadding, equals(const EdgeInsets.symmetric(horizontal: 8.0))); 186 expect(lightTheme.padding, equals(const EdgeInsets.all(4.0))); [all …]
|
D | theme_data_test.dart | 13 expect(dark, equals(dark.copyWith())); 14 expect(dark.hashCode, equals(dark.copyWith().hashCode)); 65 …expect(lightTheme.chipTheme.labelStyle.color, equals(typography.black.body2.color.withAlpha(0xde))… 66 …expect(darkTheme.chipTheme.labelStyle.color, equals(typography.white.body2.color.withAlpha(0xde))); 105 expect(themeData.textTheme.body2.fontFamily, equals('Ahem')); 106 expect(themeData.primaryTextTheme.title.fontFamily, equals('Ahem')); 107 expect(themeData.accentTextTheme.display4.fontFamily, equals('Ahem')); 111 expect(ThemeData.estimateBrightnessForColor(Colors.white), equals(Brightness.light)); 112 expect(ThemeData.estimateBrightnessForColor(Colors.black), equals(Brightness.dark)); 113 expect(ThemeData.estimateBrightnessForColor(Colors.blue), equals(Brightness.dark)); [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
D | CompactArrayTest.java | 37 if (cba.equals(cba2)) { in TestByteArrayCoverage() 42 logln("equals null: " + cba.equals(null)); in TestByteArrayCoverage() 43 logln("equals self: " + cba.equals(cba)); in TestByteArrayCoverage() 44 logln("equals clone: " + cba.equals(cba3)); in TestByteArrayCoverage() 45 logln("equals bogus: " + cba.equals(new Object())); in TestByteArrayCoverage() 59 logln("equals: " + cba4.equals(cba5)); in TestByteArrayCoverage() 60 logln("equals: " + cba.equals(cba4)); in TestByteArrayCoverage() 63 logln("equals: " + cba4.equals(cba5)); in TestByteArrayCoverage() 66 logln("equals: " + cba4.equals(cba5)); in TestByteArrayCoverage() 69 logln("modified equals clone: " + cba.equals(cba3)); in TestByteArrayCoverage() [all …]
|
D | LocaleBuilderTest.java | 127 if (method.equals("L")) { in TestLocaleBuilder() 129 } else if (method.equals("S")) { in TestLocaleBuilder() 131 } else if (method.equals("R")) { in TestLocaleBuilder() 133 } else if (method.equals("V")) { in TestLocaleBuilder() 135 } else if (method.equals("K")) { in TestLocaleBuilder() 139 } else if (method.equals("A")) { in TestLocaleBuilder() 141 } else if (method.equals("E")) { in TestLocaleBuilder() 145 } else if (method.equals("P")) { in TestLocaleBuilder() 147 } else if (method.equals("U")) { in TestLocaleBuilder() 149 } else if (method.equals("B")) { in TestLocaleBuilder() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | CompactArrayTest.java | 34 if (cba.equals(cba2)) { in TestByteArrayCoverage() 39 logln("equals null: " + cba.equals(null)); in TestByteArrayCoverage() 40 logln("equals self: " + cba.equals(cba)); in TestByteArrayCoverage() 41 logln("equals clone: " + cba.equals(cba3)); in TestByteArrayCoverage() 42 logln("equals bogus: " + cba.equals(new Object())); in TestByteArrayCoverage() 56 logln("equals: " + cba4.equals(cba5)); in TestByteArrayCoverage() 57 logln("equals: " + cba.equals(cba4)); in TestByteArrayCoverage() 60 logln("equals: " + cba4.equals(cba5)); in TestByteArrayCoverage() 63 logln("equals: " + cba4.equals(cba5)); in TestByteArrayCoverage() 66 logln("modified equals clone: " + cba.equals(cba3)); in TestByteArrayCoverage() [all …]
|
D | LocaleBuilderTest.java | 124 if (method.equals("L")) { in TestLocaleBuilder() 126 } else if (method.equals("S")) { in TestLocaleBuilder() 128 } else if (method.equals("R")) { in TestLocaleBuilder() 130 } else if (method.equals("V")) { in TestLocaleBuilder() 132 } else if (method.equals("K")) { in TestLocaleBuilder() 136 } else if (method.equals("A")) { in TestLocaleBuilder() 138 } else if (method.equals("E")) { in TestLocaleBuilder() 142 } else if (method.equals("P")) { in TestLocaleBuilder() 144 } else if (method.equals("U")) { in TestLocaleBuilder() 146 } else if (method.equals("B")) { in TestLocaleBuilder() [all …]
|
/third_party/flutter/flutter/packages/flutter/test/gestures/ |
D | mouse_tracking_test.dart | 123 expect(enter.length, equals(1), reason: 'enter contains $enter'); 124 expect(enter.first.position, equals(const Offset(0.0, 0.0))); 125 expect(enter.first.device, equals(0)); 126 expect(enter.first.runtimeType, equals(PointerEnterEvent)); 127 expect(exit.length, equals(0), reason: 'exit contains $exit'); 128 expect(move.length, equals(1), reason: 'move contains $move'); 129 expect(move.first.position, equals(const Offset(0.0, 0.0))); 130 expect(move.first.device, equals(0)); 131 expect(move.first.runtimeType, equals(PointerHoverEvent)); 136 expect(enter.length, equals(0), reason: 'enter contains $enter'); [all …]
|
D | gesture_binding_test.dart | 49 expect(events[0].runtimeType, equals(PointerDownEvent)); 50 expect(events[1].runtimeType, equals(PointerUpEvent)); 67 expect(events[0].runtimeType, equals(PointerDownEvent)); 68 expect(events[1].runtimeType, equals(PointerMoveEvent)); 69 expect(events[2].runtimeType, equals(PointerUpEvent)); 92 expect(pointerRouterEvents[0].runtimeType, equals(PointerAddedEvent)); 93 expect(pointerRouterEvents[1].runtimeType, equals(PointerHoverEvent)); 94 expect(pointerRouterEvents[2].runtimeType, equals(PointerHoverEvent)); 95 expect(pointerRouterEvents[3].runtimeType, equals(PointerRemovedEvent)); 96 expect(pointerRouterEvents[4].runtimeType, equals(PointerAddedEvent)); [all …]
|
/third_party/flatbuffers/dart/test/ |
D | flex_types_test.dart | 51 expect(ValueTypeUtils.toTypedVector(ValueType.Int,0), equals(ValueType.VectorInt)); 52 expect(ValueTypeUtils.toTypedVector(ValueType.UInt,0), equals(ValueType.VectorUInt)); 53 expect(ValueTypeUtils.toTypedVector(ValueType.Bool,0), equals(ValueType.VectorBool)); 54 expect(ValueTypeUtils.toTypedVector(ValueType.Float,0), equals(ValueType.VectorFloat)); 55 expect(ValueTypeUtils.toTypedVector(ValueType.Key,0), equals(ValueType.VectorKey)); 56 expect(ValueTypeUtils.toTypedVector(ValueType.String,0), equals(ValueType.VectorString)); 58 expect(ValueTypeUtils.toTypedVector(ValueType.Int,2), equals(ValueType.VectorInt2)); 59 expect(ValueTypeUtils.toTypedVector(ValueType.UInt,2), equals(ValueType.VectorUInt2)); 60 expect(ValueTypeUtils.toTypedVector(ValueType.Float,2), equals(ValueType.VectorFloat2)); 62 expect(ValueTypeUtils.toTypedVector(ValueType.Int,3), equals(ValueType.VectorInt3)); [all …]
|
/third_party/flutter/flutter/packages/flutter/test/painting/ |
D | box_fit_test.dart | 14 expect(result.source, equals(const Size(100.0, 1000.0))); 15 expect(result.destination, equals(const Size(100.0, 1000.0))); 18 expect(result.source, equals(const Size(300.0, 3000.0))); 19 expect(result.destination, equals(const Size(200.0, 2000.0))); 22 expect(result.source, equals(const Size(2000.0, 200.0))); 23 expect(result.destination, equals(const Size(1000.0, 100.0))); 26 expect(result.source, equals(const Size(200.0, 2000.0))); 27 expect(result.destination, equals(const Size(100.0, 1000.0))); 43 expect(result.source, equals(Size.zero)); 44 expect(result.destination, equals(Size.zero)); [all …]
|
D | box_painter_test.dart | 18 expect(side1.hashCode, isNot(equals(side2.hashCode))); 20 expect(side2.color, equals(const Color(0xFF00FFFF))); 21 expect(side2.width, equals(2.0)); 22 expect(side2.style, equals(BorderStyle.solid)); 24 expect(BorderSide.lerp(side1, side2, 0.0), equals(side1)); 25 expect(BorderSide.lerp(side1, side2, 1.0), equals(side2)); 26 expect(BorderSide.lerp(side1, side2, 0.5), equals(BorderSide( 34 expect(interpolated.style, equals(BorderStyle.solid)); 35 expect(interpolated.color, equals(side2.color.withOpacity(0.8))); 38 expect(interpolated.style, equals(BorderStyle.solid)); [all …]
|
/third_party/flutter/engine/flutter/lib/web_ui/test/ |
D | geometry_test.dart | 52 expect(size.width, equals(5.0)); 53 expect(size.height, equals(7.0)); 54 expect(size.shortestSide, equals(5.0)); 55 expect(size.longestSide, equals(7.0)); 78 expect(r.left, equals(1.0)); 79 expect(r.top, equals(3.0)); 80 expect(r.right, equals(5.0)); 81 expect(r.bottom, equals(7.0)); 86 expect(r.left, equals(1.0)); 87 expect(r.top, equals(3.0)); [all …]
|