Upcoming version
What's Changed
Breaking Changes
- Remove tts::realistic_generator: replace it with tts::randoms (#279)
- Remove --block and TTS_BLOCK, and keep their default, at least 4096 combinations of values, for the generators other than tts::sweep and tts::sample (#279)
New Features
- Add tts::sweep and tts::sweep(lo, hi), for a range check on every value of a type or of a range, NaN excepted (#279)
- Add tts::sample(n) and tts::sample(lo, hi, n), for a range check on n values spread over a type or a range (#279)
- Add tts::enumeration<T>, which ranks the values of T for tts::sweep and tts::sample: specialize it for a user-defined type to sweep or sample that type (#279)
- Run a range check in a memory that does not grow with its number of calls, without keeping every input and result (#279)
- Use OpenMP, when available, to speed up the range checks using tts::sweep or tts::sample (#279)
Bug Fixes
- Rewrite the reference entries of the test macros, which cited functions removed in 4.0 and gave wrong briefs (#280)
- Keep tts::random_value(lo, hi) within [lo, hi] for a floating-point type, which the rounding of its log-uniform draw could overstep (#279)
- Apply --valmin and --valmax to range checks, which no generator read from 3.0 to 4.1 (#279)
- Fix the distance tts::ulp_check measures between values of opposite signs, of a floating-point type or of a signed 8- or 16-bit integer type, and the crash of a range check over these integers (#279)
Version 4.1
What's Changed
New Features
- Fix #266 - Run a test body at run time and in constant evaluation (https://github.com/jfalcou/tts/pull/267)
- TTS_CONSTEXPR("...") on the title of a TTS_CASE or a TTS_CASE_TPL runs the body at run time and in constant evaluation. TTS_CONSTEVAL("...") runs it in constant evaluation only.
- Both nest with TTS_XFAIL, TTS_MAYFAIL, TTS_XINVALID, and TTS_TIMEOUT in either order.
- TTS_CASE_IN and TTS_CASE_TPL_IN take tts::runtime, tts::constant, or both, and run the body once per context in the order given.
- The body of a TTS_CASE_TPL with a wrapped title, or of a TTS_CASE_TPL_IN, declares its parameter as <typename T>(TTS_CONTEXT(tts::type<T>)).
- A failure in constant evaluation reports its expression, file, and line, and the compared values when the case also runs at run time.
- The basic, relation, and type checks run in constant evaluation, with their typed and constexpr forms. The precision, sequence, range, and exception checks fail to compile there.
- A TTS_CASE_WITH titled with TTS_CONSTEXPR or TTS_CONSTEVAL fails on a static_assert.
- TTS_ULP_RANGE_CHECK accepts functions of several arguments (https://github.com/jfalcou/tts/pull/260)
- RefType and NewType list the argument types in call order as tts::types, and Producer holds one generator per argument between parentheses, or one for all.
- TTS_ULP_RANGE_CHECK compares a std::pair, a std::tuple, or another tuple-like result member by member, with one bound for all members or one per member (https://github.com/jfalcou/tts/pull/260)
- TTS_ULP_RANGE_CHECK prints its histogram only on failure or under --verbose (https://github.com/jfalcou/tts/pull/260)
- The report of TTS_ULP_RANGE_CHECK writes each function as a call, ref(float, int), and puts stars around the sampled element of a NewType that holds several values (https://github.com/jfalcou/tts/pull/260)
- tts::adapter<T> replaces run, retrieve, and display with element_type, size, load, and store, and a 4.0 adapter fails on a static_assert that names them (https://github.com/jfalcou/tts/pull/260)
- Removed tts::ulp_histogram: run TTS_ULP_RANGE_CHECK under --verbose to print the histogram (https://github.com/jfalcou/tts/pull/260)
- The generators of TTS_ULP_RANGE_CHECK receive their index and count as std::ptrdiff_t instead of std::size_t (https://github.com/jfalcou/tts/pull/260)
- Reduced the compile time of a test to about a quarter with g++ 15 and clang++ 19 (https://github.com/jfalcou/tts/pull/253)
- Added the CMake option TTS_EXTERNAL_DEPENDENCIES, OFF by default, to take copacabana from COPACABANA_SOURCE_DIR instead of downloading it through CPM (https://github.com/jfalcou/tts/pull/276)
Bug Fixes
Infrastructure
- Run the nightly CI matrix on demand (https://github.com/jfalcou/tts/pull/262)
- Added a compile-time comparison with doctest, Catch2, GoogleTest, Boost.Test, and ut to the documentation (https://github.com/jfalcou/tts/pull/245, https://github.com/jfalcou/tts/pull/252, https://github.com/jfalcou/tts/pull/254, https://github.com/jfalcou/tts/pull/257, https://github.com/jfalcou/tts/pull/259, https://github.com/jfalcou/tts/pull/261)
- Move the CI to the compilers:v11 image, with clang 22 (https://github.com/jfalcou/tts/pull/256)
- Move the macOS jobs to macos-15 (https://github.com/jfalcou/tts/pull/265)
- Rebuild and redeploy the documentation on demand (https://github.com/jfalcou/tts/pull/272)
- Check the CMake files with cmake-format and cmake-lint, and the workflows with actionlint, in pre-commit (https://github.com/jfalcou/tts/pull/273)
Version 4.0 - V.I. Warshawski
What's Changed
Breaking Changes
New Features
Version 3.0 - Beatrice Adela Bradley
What's Changed
A large body of work (https://github.com/jfalcou/tts/pull/105) has been done to make TTS compile-time far better. This affects the user API a tiny bit, hence the bump to TTS v3.0.
Infrastructure
Bug Fixes
New Features
New Contributors
Detective who?
Beatrice Adela Bradley.
Version 2.2 - Aubrey Bradimore
What's Changed
Infrastructure
- We are now under the Boost Software Licence 1.0
- Enable Android tests and support
- Clarify some output when failures occur
New Features
- Implement ALL_EQUAL
- Test can now use configurable, automatic data generator (https://github.com/jfalcou/tts/pull/53)
- TTS_EXPECT_COMPILES/COMPILE_NOT check if a fragment of code can be compiled or not
- Reimplement TTS_WHEN and TTS_AND_THEN to support sub-tests
- Add typed tests that checks both value and exact type
Bug Fixes
- Fix Visual Studio interaction with constexpr tests
- Improve random generators and seed management
Detective who?
Aubrey Bradimore, this is a Christmas Release afterall
Version 2.1 - Cordelia Gray
What's Changed
- Fix #42 - Proper FetchContent support
- Better compatibility
- Enable EMSCRIPTEN tests and supports
- Add tests over sequences
Detective who?
Cordelia Gray, a very suitable detective
Version 2.0 - Kay Scarpetta
TTS version 2.0 is taking a major break from an earlier version. Compile-time was creeping upward and some features were not that useful. So the code base got streamlined and simplified.
This version is a Major Release With API Changes release:
Breaking API Changes:
- Removal of support for colors
- Removal of support for sub-scenario
- Silent mode for tests is the default. The only information displayed concerns failures
Features:
- Improved compile-times
- Output streamlined to fit machine processing in CI context or scripts
- Better handling of template test cases: less generated symbol, better flexibility in inputs (list of types or types list generator)
Detective who?
Kay Scarpetta, the private forensic consultant.
Version 1.0 - Phoebe Daring
This version is a Major Release With API Changes release:
Breaking API Changes:
To support some of the new feature and simplify some macros, TTS API is now based on a lambda system. If this doesn't change the way tests are performed, it now requires to end all tests cases by a ;.
Bug Fixes:
- Fix #3 - TTS_TPL_CASES now use meta-function based system for types generation
- Fix #32 - Provide a way to log arbitrary data when failures occur
- Fix #33 - Provide the REQUIRED option on tests to halt tests at first failure
- Fix #34 - Provide a command-line option to fix precision when displaying floating points
- Fix #37 - Stop displaying char const* as a string.
Detective who?
Phoebe Daring, the first half of the Daring Twins since 1912.
Version 0.2 - Kate Fansler
This version is a fix+features release:
- Fix #20 - Make string and pointers display in a more intuitive way
- Fix #23 - Add proper parens in EXPECT macro
- Add support for constexpr expectation and relational tests
- TTS_CASE_TPL now generates one scenario per type
- Fix #21 - Add runtime filtering for tests based on description string
Detective who?
Kate Fansler, solving academic crimes since 1964.
Version 0.1 - Cadfael
First public release.
TTS first complete release enables numerically oriented TDD including:
- precision testing
- checks over the data set
- easy to customize the use of user-defined types.
Detective who?
Cadfael is probably the eldest of all amateur detectives in history.