Skip to content

Commit

Permalink
GEOSLineSubstring: Add test for non-linear input
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Apr 30, 2024
1 parent dd8d223 commit dccf066
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/unit/capi/GEOSLineSubstringTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,16 @@ void object::test<8>
ensure(result_ == nullptr);
}

template<>
template<>
void object::test<9>
()
{
input_ = fromWKT("POLYGON ((0 0, 1 0, 1 1, 0 0))");
result_ = GEOSLineSubstring(input_, 0.2, 0.3);

ensure(result_ == nullptr);
}

} // namespace tut

0 comments on commit dccf066

Please sign in to comment.