| 123456789101112131415161718 |
- //
- // subrange_test.cxx
- // stream-test
- //
- // Created by Sam Jaffe on 4/6/23.
- //
- #include "stream/view/subrange.h"
- #include "stream_helpers.h"
- #include "stream_matchers.h"
- TEST(SubrangeView, CanBuildFromIterators) {
- std::vector<int> input{1, 2, 3, 4, 5};
- auto range = ranges::subrange(input.begin() + 1, input.begin() + 3);
- EXPECT_THAT(range, RangesEq(std::vector{2, 3}));
- }
|