Skip to content

Commit

Permalink
Fix build errors in tests from modified constructors causing issues w…
Browse files Browse the repository at this point in the history
…ith conversion from int type to size_t type.
  • Loading branch information
flippmoke authored and brunoabinader committed Nov 8, 2018
1 parent 00b51dc commit fdeb7ff
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions test/line_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ TEST_CASE("test line string - double")
ls1.emplace_back(2.5, 2.6);
CHECK(ls1.size() == 2);

line_string<double> ls2(10);
line_string<double> ls2(std::size_t(10));
CHECK(ls2.size() == 10);

CHECK(ls1 == ls1);
Expand All @@ -36,7 +36,7 @@ TEST_CASE("test line string - int64_t")
ls1.emplace_back(3, 4);
CHECK(ls1.size() == 2);

line_string<int64_t> ls2(10);
line_string<int64_t> ls2(std::size_t(10));
CHECK(ls2.size() == 10);

CHECK(ls1 == ls1);
Expand Down
4 changes: 2 additions & 2 deletions test/multi_line_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ TEST_CASE("test multi line string - double")
mls1.emplace_back();
CHECK(mls1.size() == 2);

multi_line_string<double> mls2(10);
multi_line_string<double> mls2(std::size_t(10));
CHECK(mls2.size() == 10);

CHECK(mls1 == mls1);
Expand Down Expand Up @@ -49,7 +49,7 @@ TEST_CASE("test multi line string - int64_t")
ls2.emplace_back(-4, 5);
CHECK(mls1.size() == 2);

multi_line_string<int64_t> mls2(10);
multi_line_string<int64_t> mls2(std::size_t(10));
CHECK(mls2.size() == 10);

CHECK(mls1 == mls1);
Expand Down
4 changes: 2 additions & 2 deletions test/multi_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ TEST_CASE("test multi point - double")
mp1.emplace_back(2.5, 2.6);
CHECK(mp1.size() == 2);

multi_point<double> mp2(10);
multi_point<double> mp2(std::size_t(10));
CHECK(mp2.size() == 10);

CHECK(mp1 == mp1);
Expand All @@ -36,7 +36,7 @@ TEST_CASE("test multi point - int64_t")
mp1.emplace_back(3, 4);
CHECK(mp1.size() == 2);

multi_point<int64_t> mp2(10);
multi_point<int64_t> mp2(std::size_t(10));
CHECK(mp2.size() == 10);

CHECK(mp1 == mp1);
Expand Down
4 changes: 2 additions & 2 deletions test/multi_polygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TEST_CASE("test multi polygon - double")
mp1.push_back(poly1);
CHECK(mp1.size() == 1);

multi_polygon<double> mp2(10);
multi_polygon<double> mp2(std::size_t(10));
CHECK(mp2.size() == 10);

CHECK(mp1 == mp1);
Expand All @@ -30,7 +30,7 @@ TEST_CASE("test multi polygon - int64_t")
mp1.push_back(poly1);
CHECK(mp1.size() == 1);

multi_polygon<int64_t> mp2(10);
multi_polygon<int64_t> mp2(std::size_t(10));
CHECK(mp2.size() == 10);

CHECK(mp1 == mp1);
Expand Down
4 changes: 2 additions & 2 deletions test/polygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ TEST_CASE("test polygon - double")
poly1.emplace_back();
CHECK(poly1.size() == 2);

polygon<double> poly2(10);
polygon<double> poly2(std::size_t(10));
CHECK(poly2.size() == 10);

CHECK(poly1 == poly1);
Expand Down Expand Up @@ -49,7 +49,7 @@ TEST_CASE("test polygon - int64_t")
lr2.emplace_back(-4, 5);
CHECK(poly1.size() == 2);

polygon<int64_t> poly2(10);
polygon<int64_t> poly2(std::size_t(10));
CHECK(poly2.size() == 10);

CHECK(poly1 == poly1);
Expand Down

0 comments on commit fdeb7ff

Please sign in to comment.