1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-07-30 19:40:24 +02:00

add testcase

This commit is contained in:
Justin Lin
2020-01-26 16:58:58 +08:00
parent 8b429529c5
commit cd4b87287f
2 changed files with 13 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ include <util/test_split_str.scad>;
include <util/test_parse_number.scad>;
include <util/test_slice.scad>;
include <util/test_sort.scad>;
include <util/test_reverse.scad>;
// Pixel
include <pixel/test_px_line.scad>;

View File

@@ -0,0 +1,12 @@
use <unittest.scad>;
use <util/reverse.scad>;
module test_reverse() {
echo("==== test_reverse ====");
lt = [1, 2, 3, 4, 5];
assert([5, 4, 3, 2, 1] == reverse(lt));
}
test_reverse();