Commit Graph

85 Commits

Author SHA1 Message Date
Barend Gehrels
861fc38533 [TEST] Unify different defines into BOOST_GEOMETRY_TEST_ENABLE_FAILURES 2019-05-29 15:48:44 +02:00
Barend Gehrels
3a025c43d5 [test] add testcase for issue #369. For this, add logarithmic
option to compare very small areas. Use this too in county and aimes
2019-03-02 19:13:15 +01:00
Barend Gehrels
7f23fcea98 [test] Harmonize define (four variants were used).
If defined, just ignore test_validity flag (such that validity is
always checked), same for sym_difference
2019-03-02 16:08:24 +01:00
Barend Gehrels
e9149afdae [buffer][test] review, use double quote for local includes 2019-02-09 18:31:22 +01:00
Barend Gehrels
fc312fed46 [test] use envelope_strategy to support unit test 2019-01-09 20:34:23 +01:00
Barend Gehrels
9ce1c0b7c7 [test] Add area strategy to unit test function to be able to use another
than the default
2019-01-09 16:28:49 +01:00
Barend Gehrels
d5e3fe996d [test] pass the buffer itself 2018-12-19 11:49:35 +01:00
Barend Gehrels
78735951c8 [test] add number of points to unit test settings 2018-12-19 11:16:32 +01:00
Barend Gehrels
99da88ac26 [test][buffer] remove checks for self-intersections which is replaced
by validity
2017-11-29 10:24:00 +01:00
Barend Gehrels
900219f408 [buffer][test] add test_area to ut_settings, and avoid checking the tests
with huge coordinate differences on area, because they are meant for
assertion-checks and they might be invalid,
self-intersecting or empty depending on machine and numerical properties.
2017-11-25 13:19:26 +01:00
Barend Gehrels
7ab31cd832 [buffer][test] remove default argument - change order 2017-11-24 22:32:33 +01:00
Barend Gehrels
751b05ddc1 [buffer] revert one change (should keep multi_index) and
update tests now that validity is improved (but not yet solved).

Also 2 testcases are added generating uu points
2017-11-23 17:03:41 +01:00
Barend Gehrels
55753fc017 [test][buffer] test, by default, for is_valid 2017-11-19 15:53:07 +01:00
Barend Gehrels
56023ee015 [test][buffer] handle the optional right distance differently,
such that it does not have to be specified in case of same as left
2017-11-19 14:06:55 +01:00
Barend Gehrels
5962b10743 [test][buffer] add ut_settings like done in overlay tests, to be able
to add test on validity
2017-11-19 13:59:21 +01:00
barendgehrels
453b6b4a34 [TEST] Fix strategy for buffer SVG 2017-03-22 11:45:51 +01:00
Adam Wulkiewicz
bc77e1255e [test] Adapt tests to new interfaces of various utilities in the library.
default_strategy services, partition, get_turns, strategies.
2017-01-28 04:09:49 +01:00
Barend Gehrels
7859cd3b91 Rename variable and report tolerance to see failure reasons 2016-11-09 10:02:10 +01:00
Adam Wulkiewicz
6fd54716a6 [test][buffer] Add failing test cases.
Add overload of testing function checking the number of polygons and
holes in the buffer output.
2016-06-21 16:46:52 +02:00
barendgehrels
ea940461d9 [test] move SVG creation upwards to avoid invalid SVG if buffered result is empty 2015-06-27 12:04:54 +02:00
Barend Gehrels
90aaa664c4 [test] add commented section to conveniently create a csv from testresults 2015-06-24 16:29:18 +02:00
Barend Gehrels
9914d7a116 [buffer][test] replace -999 with constant 2015-06-24 13:17:52 +02:00
barendgehrels
b5756e9e08 [buffer] test: don't use assign_inverse but assign just coordinates to avoid
infinite ranges. Check for emptyness as expected
2015-06-24 11:51:06 +02:00
barendgehrels
fbe3cb1c83 [buffer] unit test: don't calculate rescale policy on empty output to
avoid empty or invalid boxes and possible assertions
2015-06-24 11:06:23 +02:00
barendgehrels
603a2a7c12 Adapt buffer unit tests to change in IP calculation 2015-06-21 22:52:17 +02:00
barendgehrels
452f092e8e [buffer][test] use a rescale policy calculated over the output, instead
of over the input. This shows problems in the newly added test, and also
invalidates one other testcase.

Both problems (self-intersections) should be solved later
2015-06-13 10:32:00 +02:00
barendgehrels
2b1dfaddb6 [buffer] use the new is_empty 2015-06-03 14:50:37 +02:00
barendgehrels
68648da969 [test][buffer] Don't leave envelope uninitialized if input geometry is empty
(this is a result of new envelope calculation)
2015-06-03 11:54:48 +02:00
barendgehrels
62fa2ccc59 [buffer][test] fix commented section (distance_left) 2015-05-23 23:46:14 +02:00
Adam Wulkiewicz
bec216923f [test][buffer] Fix compilation error - BOOST_MESSAGE unknown. 2015-05-15 13:25:52 +02:00
Barend Gehrels
01d324288b [buffer][test] add option to buffer per turn
also some other related changes in svg creation
2015-05-05 15:59:31 +02:00
Barend Gehrels
df329d8c44 [buffer][test] extract svg code from test_buffer into test_buffer_svg 2015-05-05 15:56:46 +02:00
Barend Gehrels
b1168415c7 [buffer] add side_of_intersection (still with conditional) 2015-04-08 17:25:53 +02:00
Barend Gehrels
b3d7f8c82a [test][buffer] Add % difference to verify results more conveniently 2015-03-25 12:23:20 +01:00
Barend Gehrels
fbd880a0c7 [test][buffer] Only test symmetric case in release mode 2015-03-04 12:33:03 +01:00
Adam Wulkiewicz
aff82800c4 [test][algorithms] Use BOOST_GEOMETRY_CONDITION macro for constant conditions. 2015-02-11 15:53:50 +01:00
Barend Gehrels
11fbe1e453 [buffer][test] create optionally a zoomed-in view to be able to better inspect error-cases 2014-12-31 14:22:49 +01:00
Barend Gehrels
a19e818042 [buffer][test] add check for is_valid (now optional) 2014-12-31 13:51:09 +01:00
Barend Gehrels
a0c1fbaf72 [buffer][test] Simplify code using multi-polygon instead of vector 2014-12-31 13:20:28 +01:00
Barend Gehrels
5d1c9525a3 [buffer][test] option to specify tolerance for custom strategies 2014-12-31 13:13:03 +01:00
Barend Gehrels
4ad1abe80f [buffer][test] enhance display of pieces 2014-11-12 13:39:51 +01:00
Barend Gehrels
0be9f2dfca [test][buffer] test symmetric distance strategy too, if right distance
is not specified. This tests the fix in last commit, already merged to master (for 1.57)
2014-10-29 22:54:06 +01:00
Barend Gehrels
26da077654 [test][buffer] enhance SVG display for deflate, with pieces displayed 2014-10-29 17:27:25 +01:00
Barend Gehrels
254999addd [buffer] Fix case for square with buffer-distance = half the size, IP's
are on border of original and should be discarded for both inflate/deflate
This fixes the cases added to unit tests before
2014-10-29 17:26:43 +01:00
Barend Gehrels
8e6268c50e [test][buffer] enhance svg display for test results and deflated polygons.
By default pieces/turns are non visible now
2014-10-29 11:52:25 +01:00
Barend Gehrels
4a7c63fb17 [buffer][test] add custom-strategy version and test scenario which did round-join buffer fail 2014-10-29 11:16:11 +01:00
Barend Gehrels
ffd3cd1e3d [buffer][test] fix ccw suffix which should use output geometry 2014-10-24 15:33:03 +02:00
Barend Gehrels
bd4de457d8 [buffer][fix] fixes counter clockwise polygons 2014-10-24 15:02:55 +02:00
Barend Gehrels
98d8c88372 [buffer][test] remove redundant index 2014-10-15 11:59:18 +02:00
Barend Gehrels
94bd840102 [buffer][test] make labels for turns optional, for good turns and for bad turns 2014-09-24 16:47:29 +02:00