/external/catch2/projects/SelfTest/UsageTests/ |
D | Approx.tests.cpp | 54 REQUIRE( d == Approx( 1.23 ) ); 55 REQUIRE( d != Approx( 1.22 ) ); 56 REQUIRE( d != Approx( 1.24 ) ); 61 REQUIRE( Approx( d ) == 1.23 ); 62 REQUIRE( Approx( d ) != 1.22 ); 63 REQUIRE( Approx( d ) != 1.24 ); 65 REQUIRE(INFINITY == Approx(INFINITY)); 72 REQUIRE( d != Approx( 1.231 ) ); 73 REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) ); 80 REQUIRE( d <= Approx( 1.24 ) ); [all …]
|
D | Condition.tests.cpp | 61 REQUIRE( data.float_nine_point_one == Approx( 9.1f ) ); 62 REQUIRE( data.double_pi == Approx( 3.1415926535 ) ); 68 REQUIRE( x == Approx( 1.3 ) ); 78 CHECK( data.float_nine_point_one == Approx( 9.11f ) ); 79 CHECK( data.float_nine_point_one == Approx( 9.0f ) ); 80 CHECK( data.float_nine_point_one == Approx( 1 ) ); 81 CHECK( data.float_nine_point_one == Approx( 0 ) ); 82 CHECK( data.double_pi == Approx( 3.1415 ) ); 89 CHECK( x == Approx( 1.301 ) ); 98 REQUIRE( data.float_nine_point_one != Approx( 9.11f ) ); [all …]
|
/external/catch2/include/internal/ |
D | catch_approx.cpp | 28 Approx::Approx ( double value ) in Approx() function in Catch::Detail::Approx 35 Approx Approx::custom() { in custom() 36 return Approx( 0 ); in custom() 39 Approx Approx::operator-() const { in operator -() 46 std::string Approx::toString() const { in toString() 52 bool Approx::equalityComparisonImpl(const double other) const { in equalityComparisonImpl() 58 void Approx::setMargin(double margin) { in setMargin() 65 void Approx::setEpsilon(double epsilon) { in setEpsilon() 75 Detail::Approx operator "" _a(long double val) { in operator ""_a() 76 return Detail::Approx(val); in operator ""_a() [all …]
|
D | catch_approx.h | 18 class Approx { 29 explicit Approx ( double value ); 31 static Approx custom(); 33 Approx operator-() const; 36 Approx operator()( T const& value ) { in operator() 37 Approx approx( static_cast<double>(value) ); in operator() 45 explicit Approx( T const& value ): Approx(static_cast<double>(value)) in Approx() function 50 friend bool operator == ( const T& lhs, Approx const& rhs ) { 56 friend bool operator == ( Approx const& lhs, const T& rhs ) { 61 friend bool operator != ( T const& lhs, Approx const& rhs ) { [all …]
|
/external/catch2/projects/SelfTest/Baselines/ |
D | compact.sw.approved.txt | 167 Approx.tests.cpp:<line number>: passed: d == 1.23_a for: 1.23 == Approx( 1.23 ) 168 Approx.tests.cpp:<line number>: passed: d != 1.22_a for: 1.23 != Approx( 1.22 ) 169 Approx.tests.cpp:<line number>: passed: -d == -1.23_a for: -1.23 == Approx( -1.23 ) 170 Approx.tests.cpp:<line number>: passed: d == 1.2_a .epsilon(.1) for: 1.23 == Approx( 1.2 ) 171 Approx.tests.cpp:<line number>: passed: d != 1.2_a .epsilon(.001) for: 1.23 != Approx( 1.2 ) 172 Approx.tests.cpp:<line number>: passed: d == 1_a .epsilon(.3) for: 1.23 == Approx( 1.0 ) 177 Approx.tests.cpp:<line number>: passed: 104.0 != Approx(100.0) for: 104.0 != Approx( 100.0 ) 178 Approx.tests.cpp:<line number>: passed: 104.0 == Approx(100.0).margin(5) for: 104.0 == Approx( 100.… 179 Approx.tests.cpp:<line number>: passed: 104.0 == Approx(100.0).margin(4) for: 104.0 == Approx( 100.… 180 Approx.tests.cpp:<line number>: passed: 104.0 != Approx(100.0).margin(3) for: 104.0 != Approx( 100.… [all …]
|
D | console.sw.approved.txt | 1301 Approx.tests.cpp:<line number> 1304 Approx.tests.cpp:<line number>: PASSED: 1307 1.23 == Approx( 1.23 ) 1309 Approx.tests.cpp:<line number>: PASSED: 1312 1.23 != Approx( 1.22 ) 1314 Approx.tests.cpp:<line number>: PASSED: 1317 -1.23 == Approx( -1.23 ) 1319 Approx.tests.cpp:<line number>: PASSED: 1322 1.23 == Approx( 1.2 ) 1324 Approx.tests.cpp:<line number>: PASSED: [all …]
|
D | console.std.approved.txt | 324 CHECK( data.float_nine_point_one == Approx( 9.11f ) ) 326 9.1f == Approx( 9.1099996567 ) 329 CHECK( data.float_nine_point_one == Approx( 9.0f ) ) 331 9.1f == Approx( 9.0 ) 334 CHECK( data.float_nine_point_one == Approx( 1 ) ) 336 9.1f == Approx( 1.0 ) 339 CHECK( data.float_nine_point_one == Approx( 0 ) ) 341 9.1f == Approx( 0.0 ) 344 CHECK( data.double_pi == Approx( 3.1415 ) ) 346 3.1415926535 == Approx( 3.1415 ) [all …]
|
/external/catch2/docs/ |
D | assertions.md | 58 …ons of floating point values through use of a wrapper class called `Approx`. `Approx` can be used … 61 REQUIRE( performComputation() == Approx( 2.1 ) ); 64 Catch also provides a UDL for `Approx`; `_a`. It resides in 71 `Approx` is constructed with defaults that should cover most simple cases. 72 For the more complex cases, `Approx` provides 3 customization points: 75 can differ from `Approx`'s value before it is rejected. 78 a result can differ from `Approx`'s value before it is rejected. 80 * __scale__ - scale is used to change the magnitude of `Approx` for relative check. 85 Approx target = Approx(100).epsilon(0.01); 93 Approx target = Approx(100).margin(5); [all …]
|
D | list-of-examples.md | 30 - Floating point: [Approx - Comparisons](../examples/130-Fpt-Approx.cpp)
|
D | release-notes.md | 431 * `Approx` is subtly different and hopefully behaves more as users would expect 432 * `Approx::scale` defaults to `0.0` 433 …* `Approx::epsilon` no longer applies to the larger of the two compared values, but only to the `A… 434 * `INFINITY == Approx(INFINITY)` returns true 520 * `Approx::Margin` is now inclusive (#952) 522 * This means that `REQUIRE( 0.25f == Approx( 0.0f ).margin( 0.25f ) )` passes, instead of fails 593 * All of `Approx`'s member functions now accept strong typedefs in C++11 mode (#888) 594 * Previously `Approx::scale`, `Approx::epsilon`, `Approx::margin` and `Approx::operator()` didn't. 631 * When Catch is compiled using C++11, `Approx` is now constructible with anything that can be expli… 716 * `Approx` now supports an optional margin of absolute error [all …]
|
D | why-catch.md | 34 * Floating point tolerance comparisons are built in using an expressive Approx() syntax.
|
/external/icu/icu4c/source/data/brkitr/ |
D | en.txt | 9 "Approx.",
|
/external/catch2/single_include/catch2/ |
D | catch.hpp | 2739 class Approx { class 2750 explicit Approx ( double value ); 2752 static Approx custom(); 2754 Approx operator-() const; 2757 Approx operator()( T const& value ) { in operator ()() 2758 Approx approx( static_cast<double>(value) ); in operator ()() 2766 explicit Approx( T const& value ): Approx(static_cast<double>(value)) in Approx() function in Catch::Detail::Approx 2770 friend bool operator == ( const T& lhs, Approx const& rhs ) { in operator ==() 2776 friend bool operator == ( Approx const& lhs, const T& rhs ) { in operator ==() 2781 friend bool operator != ( T const& lhs, Approx const& rhs ) { in operator !=() [all …]
|
/external/catch2/include/ |
D | catch.hpp | 269 using Catch::Detail::Approx; 429 using Catch::Detail::Approx;
|
/external/bcc/tests/cc/ |
D | catch.hpp | 2621 class Approx { class 2623 explicit Approx ( double value ) in Approx() function in Catch::Detail::Approx 2629 Approx( Approx const& other ) in Approx() function in Catch::Detail::Approx 2635 static Approx custom() { in custom() 2636 return Approx( 0 ); in custom() 2639 Approx operator()( double value ) { in operator ()() 2640 Approx approx( value ); in operator ()() 2646 friend bool operator == ( double lhs, Approx const& rhs ) { in operator ==() 2651 friend bool operator == ( Approx const& lhs, double rhs ) { in operator ==() 2655 friend bool operator != ( double lhs, Approx const& rhs ) { in operator !=() [all …]
|
/external/bzip2/ |
D | README | 147 * Approx 10% faster compression, 30% faster decompression
|
/external/catch2/projects/ |
D | CMakeLists.txt | 25 ${SELF_TEST_DIR}/UsageTests/Approx.tests.cpp
|