167 std::valarray<int> initArray1{0, 1, 2, 3, 4, 5, 6, 7};
168 std::valarray<T> valArray1(initArray1.size());
169 for (
size_t i = 0; i < initArray1.size(); i++)
171 valArray1[i] =
static_cast<T
>(initArray1[i]);
176 NS_LOG_INFO(
"valarray1 size before move: " << valArray1.size());
178 NS_LOG_INFO(
"valarray1 size after move: " << valArray1.size());
183 std::valarray<int> initArray2{0, 2, 4, 6, 1, 3, 5, 7};
184 size_t testIndex = 0;
190 static_cast<T
>(initArray2[testIndex]),
191 "The values are not equal.");
197 std::valarray<int> initArray3{0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7};
198 std::valarray<T> valArray2(initArray3.size());
199 for (
size_t i = 0; i < initArray3.size(); i++)
201 valArray2[i] =
static_cast<T
>(initArray3[i]);
208 std::valarray<int> initArray4{0, 2, 4, 6, 1, 3, 5, 7, 0, 2, 4, 6, 1, 3, 5, 7};
217 static_cast<T
>(initArray4[testIndex]),
218 "The values are not equal.");
234 "The values are not equal");
260 "Arrays should not be equal, they have different dimensions.");
263 v9(0, 0, 0) = v9(0, 0, 0) +
static_cast<T
>(1);
266 "Matrices should be almost equal, but not equal.");
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
#define NS_TEST_ASSERT_MSG_NE(actual, limit, msg)
Test that an actual and expected (limit) value are not equal and report and abort if not.