Skip to content
Snippets Groups Projects
Commit 296bf503 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Improved ArrayViewTest

parent 6221b196
No related branches found
No related tags found
1 merge request!31Code revision
...@@ -171,10 +171,13 @@ TYPED_TEST( ArrayViewTest, constructors ) ...@@ -171,10 +171,13 @@ TYPED_TEST( ArrayViewTest, constructors )
// test initialization by const reference // test initialization by const reference
const ArrayType& b = a; const ArrayType& b = a;
ConstViewType b_view = b.getConstView(); ConstViewType b_view = b.getConstView();
EXPECT_EQ( b_view.getData(), b.getData() );
ConstViewType const_a_view = a.getConstView(); ConstViewType const_a_view = a.getConstView();
EXPECT_EQ( const_a_view.getData(), a.getData() );
// test initialization of const view by non-const view // test initialization of const view by non-const view
ConstViewType const_b_view( b_view ); ConstViewType const_b_view( b_view );
EXPECT_EQ( const_b_view.getData(), b_view.getData() );
} }
TYPED_TEST( ArrayViewTest, bind ) TYPED_TEST( ArrayViewTest, bind )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment