Source: tests/expression/Index.cpp 
 
 
   16 #include <tests/myratest.h>    20 ADD_TEST(
"Index",
"[expression]")
    22   REQUIRE( make_Index(1,2,3)[0] == 1 );
    23   REQUIRE( make_Index(1,2,3)[1] == 2 );
    24   REQUIRE( make_Index(1,2,3)[2] == 3 );
    25   REQUIRE( make_Index(1,2,3) != make_Index(4,5,6) );
    26   REQUIRE( make_Index(1,2,3).first<2>() == make_Index(1,2) );
    27   REQUIRE( make_Index(1,2,3).last<2>() == make_Index(2,3) );
    32   REQUIRE( 
Index<3>(data) == make_Index(4,5,6) );
 Implementation detail of Expression templates. 
Prints an Expression, by evaluate()'ing it at every Index i. 
Essentially a std::array<int,N>, provided for backwards compatibility. 
Definition: Index.h:23
 
 Results:  [PASS] 
 
 
 
 Go back to Summary of /test programs.