28 Commits

Author SHA1 Message Date
Daniel Lemire
a662df817f If we detect that the compiler supports FASTFLOAT_IS_CONSTEXPR, then let us run the tests automatically. 2023-03-26 20:43:33 -04:00
Lenard Szolnoki
6732e397d8 Add constexpr testing
When enabled, modify `verify` macro to also verify at compile time,
when the arguments are constant expressions.
2023-03-04 22:36:58 +00:00
Daniel Lemire
06333da7fe
Merge branch 'main' into dlemire/adding_bloat_analysis 2023-02-28 17:10:05 -05:00
Daniel Lemire
7f1c4a2f7f This adds bloat analysis to the tests. 2023-02-28 16:42:48 -05:00
Daniel Lemire
3e2da540ef Support rccpfastfloat. 2023-01-19 20:28:10 -05:00
Joao Paulo Magalhaes
0ba57912ff Enable tests with cross compilation 2022-12-27 11:09:17 +00:00
Daniel Lemire
eec504ae03 Adding a fast-math test. 2022-11-21 09:53:49 -05:00
Daniel Lemire
e958ff4269 Simplified clinger. 2022-11-03 18:51:37 -04:00
Kent Ross
6ec3ace497 Fix long_test and add it to the non-exhaustive test suite 2021-09-14 22:22:52 -07:00
Kent Ross
3219e3ce4c Move fast tests to the non-exhaustive test set 2021-09-14 22:22:52 -07:00
Daniel Lemire
f70b645436 Candidate release. 2021-08-03 09:22:40 -04:00
Benjamin A. Beasley
fe8e477e14 Add a SYSTEM_DOCTEST CMake option
This option is off by default, maintaining the previous behavior. When
enabled (along with FASTFLOAT_TEST), it bypasses the FetchContent
machinery for doctest so that a system-wide installation of the doctest
header can be easily used. In this case, the header doctest/doctest.h
should be available on the compiler’s include path.

This option is especially useful for Linux distributions and others that
need to run the tests in fully offline build environments.

Fixes #83.
2021-06-21 11:24:46 -04:00
Daniel Lemire
2504268bbf Being more narrow. 2021-06-07 09:59:44 -04:00
Daniel Lemire
a721b344b4 Trying. 2021-06-07 09:43:36 -04:00
Daniel Lemire
6921c8f264 Upgrading doctest. 2021-06-07 09:32:39 -04:00
Daniel Lemire
c38790bc4d Checking issue 72 2021-05-18 08:59:20 -04:00
Daniel Lemire
36afa46f1e Trying again. 2021-01-27 21:01:47 -05:00
Daniel Lemire
541e5feef1 Adding supplemental tests. 2021-01-27 19:57:00 -05:00
Daniel Lemire
4583e75e3e Merge branch 'main' into dlemire/extended_fast_path 2020-11-22 13:10:07 -05:00
Joao Paulo Magalhaes
8ba7d2e850 travis vs FetchContent_MakeAvailable(): give up on a recent cmake
... Avoid using the modern cmake function, and go back to an earlier
approach. The ppc64le travis images was not dealing well with the
attempt to hoist a modern cmake into it:

https://travis-ci.com/github/lemire/fast_float/jobs/444278392
2020-11-21 18:48:36 +00:00
Joao Paulo Magalhaes
33b64cf0d3 fix: FetchContent_MakeAvailable() was introduced only in cmake 3.14 2020-11-20 01:11:19 +00:00
Joao Paulo Magalhaes
1e79580065 basictest: move to doctest
benefits:
* shows all failures instead of throwing
* every failure shows detailed information
* more concise (~400 lines -> ~300 lines)
2020-11-20 00:48:20 +00:00
Daniel Lemire
1afba556e3 Extending the fast path. 2020-11-17 21:55:01 -05:00
Daniel Lemire
1e92d59997 Sign conversion pedantry. 2020-11-11 20:43:36 -05:00
Daniel Lemire
9c5dac3705 Build with pedantic flags under GNU GCC. 2020-11-11 20:17:18 -05:00
Daniel Lemire
8df999e44e One more range of tests. 2020-11-02 15:01:15 -05:00
Daniel Lemire
38fbe0c8e6 Tuning. 2020-10-19 14:41:10 -04:00
Daniel Lemire
1701be0224 First commit 2020-10-19 12:38:13 -04:00