aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/cxx11_tensor_fixed_size.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-20 17:33:58 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-20 17:33:58 -0700
commita792cd357d31f0a4fce62ed1fa4cc0334cf2f143 (patch)
tree162368ca7c440f8c98defdc6ddc230c440a8e4c7 /unsupported/test/cxx11_tensor_fixed_size.cpp
parent80200a182862bf7c19b51645ab8e7b9e15b65a90 (diff)
Added more tests
Diffstat (limited to 'unsupported/test/cxx11_tensor_fixed_size.cpp')
-rw-r--r--unsupported/test/cxx11_tensor_fixed_size.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/unsupported/test/cxx11_tensor_fixed_size.cpp b/unsupported/test/cxx11_tensor_fixed_size.cpp
index 1c33fefb3..5fe164859 100644
--- a/unsupported/test/cxx11_tensor_fixed_size.cpp
+++ b/unsupported/test/cxx11_tensor_fixed_size.cpp
@@ -20,6 +20,8 @@ static void test_0d()
TensorFixedSize<float, Sizes<> > scalar1;
TensorFixedSize<float, Sizes<>, RowMajor> scalar2;
VERIFY_IS_EQUAL(scalar1.rank(), 0);
+ VERIFY_IS_EQUAL(scalar1.size(), 1);
+ VERIFY_IS_EQUAL(array_prod(scalar1.dimensions()), 1);
scalar1() = 7.0;
scalar2() = 13.0;