29 lines
658 B
C++
29 lines
658 B
C++
#include <cruft/util/tap.hpp>
|
|
|
|
#include <cruft/util/types/comparator.hpp>
|
|
|
|
int
|
|
main (int, char**)
|
|
{
|
|
cruft::TAP::logger tap;
|
|
|
|
const auto a = { 1, 2, 3 };
|
|
const auto b = { 1, 2, 4 };
|
|
|
|
tap.expect (
|
|
cruft::comparator::indexed<decltype(a)> ()(a, b),
|
|
"compare initializer_list as a coordinate, success"
|
|
);
|
|
|
|
tap.expect (
|
|
!cruft::comparator::indexed<decltype(a)> ()(b, a),
|
|
"compare initializer_list as a coordinate, failure"
|
|
);
|
|
|
|
tap.expect (
|
|
!cruft::comparator::indexed<decltype (a)> ()(a, a),
|
|
"self compare initializer_list as a coordinate, failure"
|
|
);
|
|
|
|
return tap.status ();
|
|
} |