mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 14:18:13 +01:00
10 lines
186 B
OpenSCAD
10 lines
186 B
OpenSCAD
use <util/sum.scad>
|
|
|
|
module test_sum() {
|
|
echo("==== test_sum ====");
|
|
|
|
assert(sum([1, 2, 3, 4, 5]) == 15);
|
|
assert(sum([[1, 2, 3], [4, 5, 6]]) == [5, 7, 9]);
|
|
}
|
|
|
|
test_sum(); |