summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-06-17 17:44:11 -0400
committerErik Schnetter <schnetter@gmail.com>2013-06-17 17:44:11 -0400
commit5e7729e595975536dea1376fe34230215d17c56c (patch)
treeb077bc51a9a1527eee0460dff78c8d7b30e6c8b2
parentbbe3e5fe6ccde939f7ac76c5ded7c33190dd19ec (diff)
downloadvecmathlib-5e7729e595975536dea1376fe34230215d17c56c.zip
vecmathlib-5e7729e595975536dea1376fe34230215d17c56c.tar.gz
Test iota() function
-rw-r--r--test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test.cc b/test.cc
index 932c578..a9d2fcd 100644
--- a/test.cc
+++ b/test.cc
@@ -906,9 +906,11 @@ struct vecmathlib_test {
intvec_t i0 = intvec_t(I(0));
intvec_t i1 = intvec_t(I(1));
+ intvec_t iiota = intvec_t::iota();
for (int i=0; i<realvec_t::size; ++i) {
check_int("0", 0, i0[i]);
check_int("1", 1, i1[i]);
+ check_int("iota", i, iiota[i]);
}
i0 = intvec_t(I(1));
OpenPOWER on IntegriCloud