1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-25 23:46:32 +02:00

refactor unittest

This commit is contained in:
Justin Lin
2020-01-26 16:26:19 +08:00
parent e1774765de
commit b7ad7ea46e
20 changed files with 64 additions and 69 deletions

View File

@@ -1,9 +1,9 @@
include <unittest.scad>;
include <util/sort.scad>;
module test_sort() {
echo("==== test_sort ====");
include <unittest.scad>;
include <util/sort.scad>;
assertEqualPoints(
[[2, 0, 0], [5, 0, 0], [7, 0, 0], [9, 0, 0], [10, 0, 0]],
sort([[10, 0, 0], [5, 0, 0], [7, 0, 0], [2, 0, 0], [9, 0, 0]], by = "x")