2017-11-22 16:49:37 +11:00
|
|
|
#include "../tap.hpp"
|
2017-06-13 16:59:24 +10:00
|
|
|
|
2017-11-22 16:49:37 +11:00
|
|
|
#include "../iterator.hpp"
|
2017-06-13 16:59:24 +10:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <array>
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
int
|
|
|
|
main (int, char**)
|
|
|
|
{
|
|
|
|
util::TAP::logger tap;
|
|
|
|
|
|
|
|
std::vector<int> v_int { 1, 2, 3 };
|
|
|
|
std::array<float,3> a_float { 1.1f, 2.2f, 3.3f };
|
2017-09-15 15:21:25 +10:00
|
|
|
char c_char[] = { 'a', 'b', 'c' };
|
2017-06-13 16:59:24 +10:00
|
|
|
|
|
|
|
bool success = true;
|
2018-01-18 11:56:42 +11:00
|
|
|
for (const auto &[i, v, a, c]: util::izip (v_int, a_float, c_char)) {
|
2017-09-15 15:21:25 +10:00
|
|
|
success = success &&
|
|
|
|
v_int[i] == v &&
|
|
|
|
util::exactly_equal (a_float[i], a) &&
|
|
|
|
c_char[i] == c;
|
2017-06-13 16:59:24 +10:00
|
|
|
}
|
|
|
|
|
2017-09-15 15:21:25 +10:00
|
|
|
tap.expect (success, "izip containers of int, float, and char and an initialiser_list");
|
2017-06-13 16:59:24 +10:00
|
|
|
return tap.status ();
|
|
|
|
}
|