Skip to content

Commit

Permalink
[test] add unit test for issue boostorg#1138 which was fixed by eb879fe
Browse files Browse the repository at this point in the history
  • Loading branch information
barendgehrels committed Sep 14, 2023
1 parent ccd5888 commit d987af1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/algorithms/overlay/overlay_cases.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,12 @@ static std::string issue_1108[2] =
"POLYGON((22 1,22 0,14 0,18 -1.2696790939262529996,12 0,22 1))"
};

static std::string issue_1138[2] =
{
"POLYGON((2000.0 0.0, 2000.0 1500.0, 2041.0688999999999851 1500.0, 2041.0688999999999851 1471.3408999999999196, 2101.0889000000001943 1471.3408999999999196, 2101.0889000000001943 1500.0 2333.7840000000001055 1500.0 2333.7840000000001055 1471.9327000000000680, 2334.3757000000000517 1471.3409999999998945, 2335.2123000000001412 1471.3409999999998945, 2335.8040000000000873 1471.9327000000000680, 2335.8040000000000873 1500.0 2589.9909999999999854 1500.0 2589.9909999999999854 1471.9327000000000680, 2590.3476000000000568 1471.5760999999999967, 2533.8917000000001281 1471.5760999999999967, 2533.8917000000001281 1242.4249999999999545, 2326.7667000000001281 1242.4249999999999545, 2326.7667000000001281 1245.8577000000000226, 2325.5118999999999687 1246.1938999999999851, 2324.6006999999999607 1247.1051999999999680, 2324.2644000000000233 1248.3599999999999000, 2323.7667000000001281 1248.3599999999999000, 2323.7667000000001281 1269.3599999999999000, 2288.7467000000001462 1269.3599999999999000, 2288.7467000000001462 1248.3599999999999000, 2286.7489999999997963 1248.3599999999999000, 2286.4798000000000684 1247.3551999999999680, 2285.7514999999998508 1246.6268999999999778, 2284.7467000000001462 1246.3577000000000226, 2284.7467000000001462 1242.4249999999999545, 2099.4816999999998188 1242.4249999999999545, 2099.4816999999998188 0.0 2000.0 0.0000000000000000))",
"POLYGON((3000.0 0.0,2099.4817 0,2099.4817 1242.425,2316.6867 1242.425,2316.6867 1471.576,2334.1407 1471.576,2333.784 1471.9327,2333.784 1500.0,3000.0 1500.0,3000.0 0.0))"
};

static std::string issue_1183[2] =
{
"POLYGON((\
Expand Down
2 changes: 2 additions & 0 deletions test/algorithms/set_operations/difference/difference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,8 @@ void test_all()
#endif
TEST_DIFFERENCE(issue_876b, 1, 6114.18234, 1, 4754.29449, count_set(1, 2));

TEST_DIFFERENCE(issue_1138, 1, 203161.751, 2, 1237551.0171, 1);

TEST_DIFFERENCE(mysql_21977775, 2, 160.856568913, 2, 92.3565689126, 4);
TEST_DIFFERENCE(mysql_21965285, 1, 92.0, 1, 14.0, 1);
TEST_DIFFERENCE(mysql_23023665_1, 1, 92.0, 1, 142.5, 2);
Expand Down

0 comments on commit d987af1

Please sign in to comment.