mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-07-31 03:50:27 +02:00
add test
This commit is contained in:
12
test/matrix/test_m_scaling.scad
Normal file
12
test/matrix/test_m_scaling.scad
Normal file
@@ -0,0 +1,12 @@
|
||||
use <matrix/m_scaling.scad>;
|
||||
|
||||
module test_m_scaling() {
|
||||
echo("==== test_m_scaling ====");
|
||||
|
||||
expected = [[2, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]];
|
||||
actual = m_scaling([2, 1, 1]);
|
||||
|
||||
assert(expected == actual);
|
||||
}
|
||||
|
||||
test_m_scaling();
|
Reference in New Issue
Block a user