diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-06-17 17:44:11 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-06-17 17:44:11 -0400 |
commit | 5e7729e595975536dea1376fe34230215d17c56c (patch) | |
tree | b077bc51a9a1527eee0460dff78c8d7b30e6c8b2 | |
parent | bbe3e5fe6ccde939f7ac76c5ded7c33190dd19ec (diff) | |
download | vecmathlib-5e7729e595975536dea1376fe34230215d17c56c.zip vecmathlib-5e7729e595975536dea1376fe34230215d17c56c.tar.gz |
Test iota() function
-rw-r--r-- | test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)); |