Skip to content

Commit

Permalink
Fixed perl unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bubnikv committed May 5, 2021
1 parent a2de09e commit 5764d89
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions xs/xsp/Clipper.xsp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ diff(subject, clip, safety_offset = false)
Polygons clip
bool safety_offset
CODE:
RETVAL = diff(subject, clip, safety_offset);
RETVAL = diff(subject, clip, safety_offset ? ApplySafetyOffset::Yes : ApplySafetyOffset::No);
OUTPUT:
RETVAL

Expand All @@ -81,7 +81,7 @@ diff_ex(subject, clip, safety_offset = false)
Polygons clip
bool safety_offset
CODE:
RETVAL = diff_ex(subject, clip, safety_offset);
RETVAL = diff_ex(subject, clip, safety_offset ? ApplySafetyOffset::Yes : ApplySafetyOffset::No);
OUTPUT:
RETVAL

Expand All @@ -100,7 +100,7 @@ intersection(subject, clip, safety_offset = false)
Polygons clip
bool safety_offset
CODE:
RETVAL = intersection(subject, clip, safety_offset);
RETVAL = intersection(subject, clip, safety_offset ? ApplySafetyOffset::Yes : ApplySafetyOffset::No);
OUTPUT:
RETVAL

Expand All @@ -110,7 +110,7 @@ intersection_ex(subject, clip, safety_offset = false)
Polygons clip
bool safety_offset
CODE:
RETVAL = intersection_ex(subject, clip, safety_offset);
RETVAL = intersection_ex(subject, clip, safety_offset ? ApplySafetyOffset::Yes : ApplySafetyOffset::No);
OUTPUT:
RETVAL

Expand All @@ -128,7 +128,7 @@ union(subject, safety_offset = false)
Polygons subject
bool safety_offset
CODE:
RETVAL = union_(subject, safety_offset);
RETVAL = safety_offset ? union_safety_offset(subject) : union_(subject);
OUTPUT:
RETVAL

Expand All @@ -137,7 +137,7 @@ union_ex(subject, safety_offset = false)
Polygons subject
bool safety_offset
CODE:
RETVAL = union_ex(subject, safety_offset);
RETVAL = safety_offset ? union_safety_offset_ex(subject) : union_ex(subject);
OUTPUT:
RETVAL

Expand Down

0 comments on commit 5764d89

Please sign in to comment.