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

2172 Commits

Author SHA1 Message Date
Raffi Enficiaud
1d5892ca52 cleanup 2015-06-01 16:26:51 +02:00
Raffi Enficiaud
704f827401 Merge branch 'tractickets/11347-fix-sun-compiler-deficiencies' into develop 2015-05-29 11:02:40 +02:00
Raffi Enficiaud
30d582258d Updating change log 2015-05-29 11:01:57 +02:00
Raffi Enficiaud
6c78d81f84 Merge branch 'patch-3' of https://github.com/akumta/test into tractickets/11347-fix-sun-compiler-deficiencies 2015-05-29 10:56:02 +02:00
Raffi Enficiaud
6f83c21b25 Merge branch 'patch-2' of https://github.com/akumta/test into tractickets/11347-fix-sun-compiler-deficiencies 2015-05-29 10:55:35 +02:00
Raffi Enficiaud
c4ea25fa93 Merge branch 'local/fix_floating_point_strict_ordering' into develop
Conflicts:
	include/boost/test/tools/fpc_op.hpp
2015-05-29 10:40:42 +02:00
Raffi Enficiaud
0ba0075aac Merge branch 'akrzemi1-patch-6' into develop 2015-05-29 10:36:12 +02:00
Raffi Enficiaud
fe9bdc7655 Merge branch 'patch-6' of https://github.com/akrzemi1/test into akrzemi1-patch-6
Conflicts:
	include/boost/test/tools/fpc_op.hpp
2015-05-29 10:35:47 +02:00
Raffi Enficiaud
3d904ffa07 typo 2015-05-29 10:32:16 +02:00
Raffi Enficiaud
3d9974cc92 More about workarounds 2015-05-29 10:32:08 +02:00
Raffi Enficiaud
d0909211dc BOOST_TEST doc reorg continued 2015-05-29 10:14:16 +02:00
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
Gennadiy Rozental
d65cef7a75 simplified implementation of strict order 2015-05-28 11:59:23 -04:00
Andrzej Krzemieński
b17702816a Changed v == T(0) to v == 0
With this change we get a *desired* compile time failure when we are passed type `T` that is not implicitly convertible from `int` but is explicitly convertible. Now, we make an implicit conversion from `int` a requirement and refuse to compile otherwise.

This addresses an issue where the user gives us a type `T` with non-intuitive construction from `int`.
2015-05-28 17:15:01 +02:00
akumta
8da4f20e3e Update test_case.hpp
Update D_S with DataSet
2015-05-28 07:16:17 -07:00
akumta
55797bfcc9 Update fwd.hpp
Updated D_S to DataSet
2015-05-28 06:56:33 -07:00
Raffi Enficiaud
0bb43b3674 Some more about assertion severity levels 2015-05-28 14:26:09 +02:00
Raffi Enficiaud
e8e4f747e8 Fix for floating point comparison using strict ordering 2015-05-28 14:00:49 +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
akumta
836403474f Update test_case.hpp
Possible solution for #11347.
2015-05-26 11:58:55 -07:00
akumta
13343b7f06 Update fwd.hpp
Possible solution for #11347.
2015-05-26 11:14:04 -07: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