James E. King III
2c7fe1aae7
Revert "Add pow method"
...
This reverts commit 25ad8e5a5c
.
2018-07-14 11:18:52 -04:00
James E. King III
25ad8e5a5c
Add pow method
2018-06-17 21:18:01 -04:00
Edward Diener
d1cd08fc15
Added a few mixed sign, mixed types constructor/assign tests.
2017-03-27 15:06:16 -04:00
jzmaddock
304e895242
Add remaining possible mix of conversions to tests.
2017-03-27 18:22:58 +01:00
jzmaddock
44f1c9501b
Add support for construction/assignment from two different integer types.
...
Improve tests - check for mixed construction, and test domain_errors occur at the correct boundaries.
2017-03-27 08:23:58 +01:00
Kohei Takahashi
eefada58f9
Update comparison tests and const-ness.
2017-02-03 16:52:19 +09:00
jzmaddock
ff2530e119
Merge branch 'no-float-convert' of https://github.com/jzmaddock/rational into develop
...
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2016-12-28 19:22:56 +00:00
Edward Diener
6c1cad78a2
Merge pull request #6 from mlang/gcd_lcm
...
Support for gcd and lcm of rational numbers.
2015-08-27 12:57:37 -04:00
Marcel Raad
7459b2fe43
Fix test compile break
...
A semicolon is now required after BOOST_GLOBAL_FIXTURE because of 3f7216db3d
.
2015-06-27 11:43:15 +02:00
Mario Lang
c90f4c9af8
Add tests for gcd and lcm on rationals.
2015-04-03 20:01:30 +02:00
Marshall Clow
a69d2d9ea6
Merge pull request #3 from jzmaddock/boost_throw_exception
...
Boost throw exception.
@jzmaddock ; if you remind me tomorrow, I will merge to master. (after the tests cycle)
2015-04-01 19:25:41 -07:00
jzmaddock
6f3a1702d6
Merge branch 'constexpr-checks' into boost_throw_exception
2015-03-31 12:17:08 +01:00
jzmaddock
c29fd7848e
Move constexpr test cases into separate file.
2015-03-31 12:12:44 +01:00
Peter Dimov
b8ee36c542
Replaced math::gcd, lcm references to integer.
2015-01-15 03:50:48 +02:00
jzmaddock
bede51e319
We can have a throw expression in a converting constructor after all - fix so it works.
...
Also test that converting constructor does throw when expected.
2014-07-28 11:50:47 +01:00
jzmaddock
cdc63aee80
Add constexpr usage checks - without these we can't be sure that other changes don't break something.
2014-07-28 11:27:33 +01:00
Daryle Walker
2b307a4a18
Integrated Boost.Rational's sanity checks during assignment in the input operator, respecting IOStreams' exception policy
...
[SVN r85541]
2013-09-01 10:54:47 +00:00
Daryle Walker
5e8a48d030
Fixed normalization problem with Boost.Rational's "assign"; add check for negative values too large for normalization (refs #9067 )
...
[SVN r85526]
2013-08-30 13:18:37 +00:00
Daryle Walker
d5319c0c14
Started modernizing Boost.Rational I/O (refs #7187 )
...
[SVN r85519]
2013-08-30 00:22:01 +00:00
Daryle Walker
48d70b695d
Make the I/O part of Boost.Rational conditional on the configuration flag BOOST_NO_IOSTREAM (refs #7250 ).
...
[SVN r85498]
2013-08-28 07:12:48 +00:00
Daryle Walker
2c1bfb7ed7
Added cross-instantiation constructor template, refs #9018 .
...
[SVN r85484]
2013-08-27 10:35:26 +00:00
Daryle Walker
ceee860166
Changed "not" to "!" for MSVC compatibility.
...
[SVN r85434]
2013-08-23 09:01:59 +00:00
Daryle Walker
674a61fabe
Used static_cast to suppress a warning/error about a narrowing conversion. Fixes #5855 .
...
[SVN r85418]
2013-08-21 23:24:54 +00:00
Daryle Walker
ab31654dd2
Changed the two std::numeric_limits specializations to insert the two new members added in C++11. (Boost.Test uses one of them in its C++11 code.)
...
[SVN r85417]
2013-08-21 21:07:29 +00:00
Gennadiy Rozental
aa401ee8d9
eliminated test_case_template.hpp
...
[SVN r74735]
2011-10-05 10:28:08 +00:00
Daryle Walker
94caf9a401
Tweaked files to pass inspection report; one file had some min/max violations; but all had to have 'boostinspect:nolicense' set because a copyrighter, Paul Moore, has disappeared, so his files can never be changed to the main Boost license
...
[SVN r47847]
2008-07-27 23:43:04 +00:00
Rene Rivera
1b8403048e
Move rational tests into canonical test subdir structure.
...
[SVN r44386]
2008-04-13 23:36:17 +00:00