Subject: [Boost-bugs] [Boost C++ Libraries] #12240: Documentation for data-driven testing should explictly mention std::tuple
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-05-31 14:09:03
#12240: Documentation for data-driven testing should explictly mention std::tuple
-------------------------------------------------+-------------------------
Reporter: Tony Lewis <tonyelewis@â¦> | Owner: rogeeff
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: test
Version: Boost 1.61.0 | Severity:
Keywords: test,tuple,data- | Optimization
driven,BOOST_DATA_TEST_CASE,std::tuple |
-------------------------------------------------+-------------------------
`BOOST_DATA_TEST_CASE()` handles ranges of `std::tuple`s differently to
ranges of other types, in that it expects to be able to expand the parts
of the tuples out to multiple variables. Whether or not this is intended
or just a side-effect of the implementation, I think it's a sensible
behaviour. Indeed, it's quite useful to be able to supply
`BOOST_DATA_TEST_CASE()` with pre-zipped data rather than always having to
use `^`.
However at the moment, this special handling of `std::tuple` is not
documented. Hence I suggest that this be included in the documentation
(possibly near the "Zips" section) or otherwise that the implementation is
changed so that users' ranges of `std::tuple`s are treated like ranges of
other types (ie each tuple is expanded to one variable).
Many thanks for your work on this library.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12240> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC