mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Test for ordering of bounds_iterator
This commit is contained in:
parent
1475af7a80
commit
ca76674f1c
@ -1828,6 +1828,17 @@ SUITE(array_view_tests)
|
|||||||
CHECK(!(av1 >= av2));
|
CHECK(!(av1 >= av2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(bounds_iterator_ordering)
|
||||||
|
{
|
||||||
|
static_bounds<size_t, 2, 2> bounds;
|
||||||
|
|
||||||
|
auto i1 = bounds.begin() + 1;
|
||||||
|
auto i2 = bounds.begin() + 2;
|
||||||
|
|
||||||
|
CHECK(i1 < i2);
|
||||||
|
CHECK(!(i2 < i1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int, const char *[])
|
int main(int, const char *[])
|
||||||
|
Loading…
Reference in New Issue
Block a user