| 7 | using namespace uno; |
| 8 | |
| 9 | TEST(VectorView, Size) { |
| 10 | const std::vector<double> x{1., 2., 3., 100., 200., 300.}; |
| 11 | // vector view |
| 12 | const size_t start_index = 2; |
| 13 | const size_t end_index = 5; |
| 14 | const auto x_view = view(x, start_index, end_index); |
| 15 | ASSERT_EQ(x_view.size(), end_index - start_index); |
| 16 | } |