Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellbelove committed Sep 12, 2022
1 parent 7393090 commit d63be88
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/test_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,23 +304,23 @@ namespace
//*************************************************************************
TEST(test_empty)
{
Data data;
Data data = { 0 };

CHECK(!data.empty());
}

//*************************************************************************
TEST(test_size)
{
Data data;
Data data = { 0 };

CHECK_EQUAL(SIZE, data.size());
}

//*************************************************************************
TEST(test_max_size)
{
Data data;
Data data = { 0 };

CHECK_EQUAL(SIZE, data.max_size());
}
Expand All @@ -329,7 +329,7 @@ namespace
//*************************************************************************
TEST(test_fill)
{
Data data;
Data data = { 0 };
data.fill(1);

Compare_Data compare;
Expand Down Expand Up @@ -373,7 +373,7 @@ namespace
int check1[] = { 0, 1, 2, 3, 4, -1, -1, -1, -1, -1 };
int check2[] = { 0, 1, 2, 3, 4, 99, 99, 99, 99, 99 };

Data data;
Data data = { 0 };

// Initial data.
data.assign(std::begin(initial), std::end(initial));
Expand Down Expand Up @@ -401,7 +401,7 @@ namespace
int check2[] = { 0, 1, 2, 3, 4, 99, 5, 6, 7, 8 };
int check3[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 99 };

Data data;
Data data = { 0 };
Data::iterator result;

// Insert beginning.
Expand Down Expand Up @@ -437,7 +437,7 @@ namespace
int check4[] = { 12, 11, 10, 9, 8, 7, 6, 5, 4, 3 };
int check5[] = { 0, 1, 2, 3, 12, 11, 10, 9, 8, 7, 6 };

Data data;
Data data = { 0 };
Data::iterator result;

// Insert smaller, beginning.
Expand Down Expand Up @@ -487,7 +487,7 @@ namespace
int check3a[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int check3b[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 99 };

Data data;
Data data = { 0 };
Data::iterator result;

// Erase beginning.
Expand Down Expand Up @@ -541,7 +541,7 @@ namespace
int check3a[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int check3b[] = { 0, 1, 2, 3, 4, 99, 99, 99, 99, 99 };

Data data;
Data data = { 0 };
Data::iterator result;

// Erase beginning.
Expand Down

0 comments on commit d63be88

Please sign in to comment.