From ca76674f1cd47af6746fd39d54b5e66bf5443cbd Mon Sep 17 00:00:00 2001 From: Vlastimil Dort Date: Mon, 19 Oct 2015 19:05:55 +0200 Subject: [PATCH] Test for ordering of bounds_iterator --- tests/array_view_tests.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/array_view_tests.cpp b/tests/array_view_tests.cpp index f84e908..4c4db3c 100644 --- a/tests/array_view_tests.cpp +++ b/tests/array_view_tests.cpp @@ -1828,6 +1828,17 @@ SUITE(array_view_tests) CHECK(!(av1 >= av2)); } } + + TEST(bounds_iterator_ordering) + { + static_bounds bounds; + + auto i1 = bounds.begin() + 1; + auto i2 = bounds.begin() + 2; + + CHECK(i1 < i2); + CHECK(!(i2 < i1)); + } } int main(int, const char *[])