Searched refs:sav3 (Results 1 – 1 of 1) sorted by relevance
/external/Microsoft-GSL/tests/ |
D | strided_span_tests.cpp | 84 strided_span<int, 2> sav3{ arr, {{ 2, 2 },{ 6, 2 }} }; // T -> const T in SUITE() local 85 CHECK((sav3.bounds().index_bounds() == index<2>{ 2, 2 })); in SUITE() 86 CHECK((sav3.bounds().strides() == index<2>{ 6, 2 })); in SUITE() 87 CHECK((sav3[{0, 0}] == 1 && sav3[{0, 1}] == 3 && sav3[{1, 0}] == 7)); in SUITE() 414 strided_span<int, 1> sav3{ av, { 1 } }; in SUITE() local 456 strided_span<const int, 2> sav3 = sav2.as_strided_span<const int>(); in SUITE() local 457 CHECK(sav3[0][0] == 0); in SUITE() 458 CHECK(sav3[1][0] == 2); in SUITE() 459 CHECK_THROW(sav3[1][1], fail_fast); in SUITE() 460 CHECK_THROW(sav3[0][1], fail_fast); in SUITE() [all …]
|