mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-22 04:13:07 +02:00
Make most path functions accept singleton regions
Replace check_and_fix_path with force_path
This commit is contained in:
@@ -39,6 +39,7 @@ test_cleanup_path();
|
||||
module test_path_merge_collinear() {
|
||||
path = [[-20,-20], [-10,-20], [0,-10], [10,0], [20,10], [20,20], [15,30]];
|
||||
assert(path_merge_collinear(path) == [[-20,-20], [-10,-20], [20,10], [20,20], [15,30]]);
|
||||
assert(path_merge_collinear([path]) == [[-20,-20], [-10,-20], [20,10], [20,20], [15,30]]);
|
||||
}
|
||||
test_path_merge_collinear();
|
||||
|
||||
|
Reference in New Issue
Block a user