Added a few tests to validate the behavior of the assignment operator.

This commit is contained in:
Benoit Steiner
2014-07-22 10:32:40 -07:00
parent f7bb7ee3f3
commit 1f371e78e6
2 changed files with 44 additions and 1 deletions

View File

@@ -244,7 +244,7 @@ static void test_simple_assign()
epsilon(0,1,2) = epsilon(2,0,1) = epsilon(1,2,0) = 1;
epsilon(2,1,0) = epsilon(0,2,1) = epsilon(1,0,2) = -1;
Tensor<int, 3> e2(2,3,1);
Tensor<int, 3> e2(3,3,3);
e2.setZero();
VERIFY_IS_EQUAL((e2(1,2,0)), 0);