2
0
mirror of https://github.com/boostorg/test.git synced 2026-02-15 13:32:09 +00:00
Commit Graph

2154 Commits

Author SHA1 Message Date
Raffi Enficiaud
8927ce6176 Fix Jamfile 2015-05-29 09:51:22 +02:00
Raffi Enficiaud
b4cd80f2d4 Merge branch 'develop' of https://github.com/boostorg/test into develop 2015-05-29 09:46:04 +02:00
Raffi Enficiaud
4f1a41e0f0 Merge pull request #72 from akrzemi1/develop
Doc: adapting FP types for tolerance ops
2015-05-29 00:24:35 +02:00
Andrzej Krzemienski
a377413dbb Doc: adapting FP types for tolerance ops 2015-05-29 00:08:32 +02:00
Raffi Enficiaud
b9cc7d89ca Merging the part 'acceptable statements' with BOOST_TEST 2015-05-28 21:40:39 +02:00
Raffi Enficiaud
4dca1f76ff Merge branch 'develop' of https://github.com/boostorg/test into develop 2015-05-28 21:39:49 +02:00
Raffi Enficiaud
a5660c8f72 Merge pull request #71 from akrzemi1/develop
Doc: improving FP tolerance section
2015-05-28 21:28:45 +02:00
Andrzej Krzemienski
3210b62226 Doc: improving FP tolerance section 2015-05-28 20:42:37 +02:00
Raffi Enficiaud
0bb43b3674 Some more about assertion severity levels 2015-05-28 14:26:09 +02:00
Raffi Enficiaud
44ad58534b Merge branch 'develop' of https://github.com/boostorg/test into develop 2015-05-28 09:49:38 +02:00
Gennadiy Rozental
71c349e5cc Merge pull request #66 from akrzemi1/patch-5
v * FTP(0.01)  -->  v / 100
2015-05-28 02:42:05 -04:00
Gennadiy Rozental
194b9e3b92 minor reformatting 2015-05-28 02:40:46 -04:00
Gennadiy Rozental
114d1733d9 Merge pull request #69 from akrzemi1/develop
Don't use std::numeric_limits when is_specialized is false
2015-05-28 02:37:22 -04:00
Gennadiy Rozental
8231cbc88d after merge 2015-05-28 02:33:46 -04:00
Gennadiy Rozental
e69cd835eb spaces 2015-05-28 02:30:03 -04:00
Raffi Enficiaud
36dc6a9622 Refactoring entry documentation and assertion severity levels 2015-05-27 17:12:04 +02:00
Raffi Enficiaud
b1e4140119 Additional links 2015-05-27 13:52:53 +02:00
Raffi Enficiaud
8abfb00918 about statements and acceptable expressions. Should be merged with the BOOST_TEST page 2015-05-27 13:49:13 +02:00
Raffi Enficiaud
c187025740 some boost_test rewrite 2015-05-27 13:48:43 +02:00
Raffi Enficiaud
f3c8d2e323 Updating the dusty README file 2015-05-27 13:25:35 +02:00
Raffi Enficiaud
0dcc3a7339 Feedback from Paul A. Bristow about BOOST_TEST(true && true) 2015-05-27 13:17:33 +02:00
Raffi Enficiaud
dae2b8eaa2 Little more on the reported information 2015-05-27 13:11:02 +02:00
Raffi Enficiaud
89393bf61c Copyright changes 2015-05-27 13:06:52 +02:00
Raffi Enficiaud
cd4bb00fcc Weird English on assertion security levels 2015-05-27 13:04:29 +02:00
Raffi Enficiaud
7310274bdd more on the changelog 2015-05-27 12:04:43 +02:00
Raffi Enficiaud
420b4accd4 Mentioning the other flavours of BOOST_TEST on the reference/summary page 2015-05-27 12:04:41 +02:00
Andrzej Krzemienski
817ac936c9 Don't use std::numeric_limits when is_specialized is false
Prior to this change, in floating-point computations, in the case
where we work for types where std::numeric_limits are not specialized,
funcitons min() and max() from std::numeric_limits<FPT> are nonetheless
instantiated and return FPT(0). While the result is never used in run-time,
this may still trigger a compile-time failure.

After this change, the paths for the cases where std::numeric_limits are not
specialized are handled by separate specializations rather than run-time if
statements.
2015-05-26 23:03:11 +02:00
Raffi Enficiaud
e9f77a93b1 mks -> us (microseconds) 2015-05-26 13:55:48 +02:00
Raffi Enficiaud
4d3e36bed5 typo 2015-05-26 11:46:31 +02:00
Andrzej Krzemieński
a30b08ff1c v * FTP(0.01) --> v / 100
Rationale:
Because we are not using the literal of type double, we avoid the bug where `FTP(0.01)` is evaluated as `FTP(int(0.01))` for FPT types that do not offer a conversion from `double`.
I do not use an explicit cast `v / FPT(100)` in order to allow the compiler to see that we are dividing by the integer, and engage optimizations for that case, if any.
By `v / 100` I require that conversion from int to FPT is implicit, and thereby avoid executing explicit constructors, which may have non-conversion semantics.
To the best of my knowledge, `v / 100` is not less accurate than `v * 0.01`. It may be slower, but given that this is evaluated in BOOST_TEST, which does lots of ops on IO streams, this should be negligible; plus, we are affecting only a percentage tolerance manipulator -- not the floating-point comparison itself.
2015-05-26 10:31:24 +02:00
Raffi Enficiaud
ee939357e4 Fix links 2015-05-26 06:41:35 +02:00
Gennadiy Rozental
1c4e5dcea6 Merge pull request #65 from akrzemi1/develop
FPT() --> FPT(0)bb
2015-05-25 16:18:37 -04:00
Gennadiy Rozental
4dd5720db6 move FPC theory under "theory" subsection of FPC description 2015-05-25 16:13:21 -04:00
Andrzej Krzemienski
757aa2aa02 FP comparisons do not use default constructor
Changed the occurences of FPT() to FPT(0). Since we expect a construction from int anyway,
and since the previous implementation assumed that the default constructor initializes to
numeric vaue zero, the change appears uncontroversial. What we gain, is that the default
ctor is no longer required. The FP algos work for non-default-constructible types.
2015-05-25 22:09:48 +02:00
Andrzej Krzemienski
89871800b9 Doc: removed backslash in decorator_01.output 2015-05-25 21:32:56 +02:00
Gennadiy Rozental
d4ad280e7b . 2015-05-25 15:32:32 -04:00
Gennadiy Rozental
b54597c6b8 . 2015-05-25 15:31:01 -04:00
Raffi Enficiaud
6825c30039 Dead link on the Fibonacci example. To be ressurrected in another form 2015-05-25 15:19:43 +02:00
Raffi Enficiaud
4b5f371e19 web link: output format 2015-05-25 15:16:21 +02:00
Raffi Enficiaud
f17a8b1386 oudated? 2015-05-25 15:15:15 +02:00
Raffi Enficiaud
8c91c1d8d9 webwisdom warning 2015-05-25 15:14:08 +02:00
Gennadiy Rozental
cfa7ee3df7 fixture updated 2015-05-25 04:07:44 -04:00
Gennadiy Rozental
75515e8100 decorators updated 2015-05-25 02:46:06 -04:00
Gennadiy Rozental
d15f4c4f52 interaction based testing is killed (for now) 2015-05-24 18:40:56 -04:00
Raffi Enficiaud
4b4becd77a Fixing --link= to link= 2015-05-24 21:46:44 +02:00
Raffi Enficiaud
0b43284ed8 removed unexplainable mention 2015-05-24 17:11:38 +02:00
Gennadiy Rozental
6c6769ae71 nullary test case documentation update; web wisdom page added 2015-05-24 05:58:57 -04:00
Gennadiy Rozental
e8e20defe9 improved flip side description for static lib 2015-05-24 02:43:01 -04:00
Gennadiy Rozental
d264b4b6f1 fixed test unit ordering with finally correct algo 2015-05-24 02:28:40 -04:00
Raffi Enficiaud
dfdfbb6f44 fix link 2015-05-23 23:33:16 +02:00