• Home
  • Raw
  • Download

Lines Matching refs:REQUIRE

42     REQUIRE( d == 1.23_a );
43 REQUIRE( d != 1.22_a );
44 REQUIRE( -d == -1.23_a );
46 REQUIRE( d == 1.2_a .epsilon(.1) );
47 REQUIRE( d != 1.2_a .epsilon(.001) );
48 REQUIRE( d == 1_a .epsilon(.3) );
54 REQUIRE( d == Approx( 1.23 ) );
55 REQUIRE( d != Approx( 1.22 ) );
56 REQUIRE( d != Approx( 1.24 ) );
58 REQUIRE( d == 1.23_a );
59 REQUIRE( d != 1.22_a );
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 ) );
81 REQUIRE( d <= Approx( 1.23 ) );
83 REQUIRE( d <= Approx( 1.22 ).epsilon(0.1) );
90 REQUIRE( d >= Approx( 1.22 ) );
91 REQUIRE( d >= Approx( 1.23 ) );
93 REQUIRE( d >= Approx( 1.24 ).epsilon(0.1) );
98 REQUIRE( 1.23f == Approx( 1.23f ) );
99 REQUIRE( 0.0f == Approx( 0.0f ) );
104 REQUIRE( 1 == Approx( 1 ) );
105 REQUIRE( 0 == Approx( 0 ) );
114 REQUIRE( 1.0f == Approx( 1 ) );
115 REQUIRE( 0 == Approx( dZero) );
116 REQUIRE( 0 == Approx( dSmall ).margin( 0.001 ) );
117 REQUIRE( 1.234f == Approx( dMedium ) );
118 REQUIRE( dMedium == Approx( 1.234f ) );
127 REQUIRE( d == approx( 1.23 ) );
128 REQUIRE( d == approx( 1.22 ) );
129 REQUIRE( d == approx( 1.24 ) );
130 REQUIRE( d != approx( 1.25 ) );
132 REQUIRE( approx( d ) == 1.23 );
133 REQUIRE( approx( d ) == 1.22 );
134 REQUIRE( approx( d ) == 1.24 );
135 REQUIRE( approx( d ) != 1.25 );
139 REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) );
140 REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) );
146 REQUIRE( 104.0 != Approx(100.0) );
147 REQUIRE( 104.0 == Approx(100.0).margin(5) );
148 REQUIRE( 104.0 == Approx(100.0).margin(4) );
149 REQUIRE( 104.0 != Approx(100.0).margin(3) );
150 REQUIRE( 100.3 != Approx(100.0) );
151 REQUIRE( 100.3 == Approx(100.0).margin(0.5) );
178 REQUIRE(101.000001 != Approx(100).epsilon(0.01));
179 REQUIRE(std::pow(10, -5) != Approx(std::pow(10, -7)));
183 REQUIRE(101.01 != Approx(100).epsilon(0.01));
187 REQUIRE(INFINITY == Approx(INFINITY));
188 REQUIRE(NAN != Approx(NAN));
196 REQUIRE(td == Approx(10.0));
197 REQUIRE(Approx(10.0) == td);
199 REQUIRE(td != Approx(11.0));
200 REQUIRE(Approx(11.0) != td);
202 REQUIRE(td <= Approx(10.0));
203 REQUIRE(td <= Approx(11.0));
204 REQUIRE(Approx(10.0) <= td);
205 REQUIRE(Approx(9.0) <= td);
207 REQUIRE(td >= Approx(9.0));
208 REQUIRE(td >= Approx(td));
209 REQUIRE(Approx(td) >= td);
210 REQUIRE(Approx(11.0) >= td);