• 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 );
70 REQUIRE( d != Approx( 1.231 ) );
71 REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) );
78 REQUIRE( d <= Approx( 1.24 ) );
79 REQUIRE( d <= Approx( 1.23 ) );
81 REQUIRE( d <= Approx( 1.22 ).epsilon(0.1) );
88 REQUIRE( d >= Approx( 1.22 ) );
89 REQUIRE( d >= Approx( 1.23 ) );
91 REQUIRE( d >= Approx( 1.24 ).epsilon(0.1) );
96 REQUIRE( 1.23f == Approx( 1.23f ) );
97 REQUIRE( 0.0f == Approx( 0.0f ) );
102 REQUIRE( 1 == Approx( 1 ) );
103 REQUIRE( 0 == Approx( 0 ) );
112 REQUIRE( 1.0f == Approx( 1 ) );
113 REQUIRE( 0 == Approx( dZero) );
114 REQUIRE( 0 == Approx( dSmall ).margin( 0.001 ) );
115 REQUIRE( 1.234f == Approx( dMedium ) );
116 REQUIRE( dMedium == Approx( 1.234f ) );
125 REQUIRE( d == approx( 1.23 ) );
126 REQUIRE( d == approx( 1.22 ) );
127 REQUIRE( d == approx( 1.24 ) );
128 REQUIRE( d != approx( 1.25 ) );
130 REQUIRE( approx( d ) == 1.23 );
131 REQUIRE( approx( d ) == 1.22 );
132 REQUIRE( approx( d ) == 1.24 );
133 REQUIRE( approx( d ) != 1.25 );
137 REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) );
138 REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) );
144 REQUIRE( 104.0 != Approx(100.0) );
145 REQUIRE( 104.0 == Approx(100.0).margin(5) );
146 REQUIRE( 104.0 == Approx(100.0).margin(4) );
147 REQUIRE( 104.0 != Approx(100.0).margin(3) );
148 REQUIRE( 100.3 != Approx(100.0) );
149 REQUIRE( 100.3 == Approx(100.0).margin(0.5) );
176 REQUIRE(101.000001 != Approx(100).epsilon(0.01));
177 REQUIRE(std::pow(10, -5) != Approx(std::pow(10, -7)));
181 REQUIRE(101.01 != Approx(100).epsilon(0.01));
185 REQUIRE(INFINITY == Approx(INFINITY));
186 REQUIRE(-INFINITY != Approx(INFINITY));
187 REQUIRE(1 != Approx(INFINITY));
188 REQUIRE(INFINITY != Approx(1));
189 REQUIRE(NAN != Approx(NAN));
197 REQUIRE(td == Approx(10.0));
198 REQUIRE(Approx(10.0) == td);
200 REQUIRE(td != Approx(11.0));
201 REQUIRE(Approx(11.0) != td);
203 REQUIRE(td <= Approx(10.0));
204 REQUIRE(td <= Approx(11.0));
205 REQUIRE(Approx(10.0) <= td);
206 REQUIRE(Approx(9.0) <= td);
208 REQUIRE(td >= Approx(9.0));
209 REQUIRE(td >= Approx(td));
210 REQUIRE(Approx(td) >= td);
211 REQUIRE(Approx(11.0) >= td);