Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
It helps running the tests too
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Dec 5, 2022
1 parent c4975be commit 12112f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions testing/vector.cu
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ void TestVectorInitializerList(void)
{
Vector v{1, 2, 3};
ASSERT_EQUAL(v.size(), 3lu);
ASSERT_EQUAL(v[0], 0);
ASSERT_EQUAL(v[1], 1);
ASSERT_EQUAL(v[2], 2);
ASSERT_EQUAL(v[0], 1);
ASSERT_EQUAL(v[1], 2);
ASSERT_EQUAL(v[2], 3);

v = {1, 2, 3, 4};
ASSERT_EQUAL(v.size(), 4lu);
Expand All @@ -60,9 +60,9 @@ void TestVectorInitializerList(void)
const auto alloc = v.get_allocator();
Vector v2{{1, 2, 3}, alloc};
ASSERT_EQUAL(v2.size(), 3lu);
ASSERT_EQUAL(v2[0], 0);
ASSERT_EQUAL(v2[1], 1);
ASSERT_EQUAL(v2[2], 2);
ASSERT_EQUAL(v2[0], 1);
ASSERT_EQUAL(v2[1], 2);
ASSERT_EQUAL(v2[2], 3);
}
DECLARE_VECTOR_UNITTEST(TestVectorInitializerList);
#endif
Expand Down

0 comments on commit 12112f5

Please sign in to comment.