diff --git a/test/matrix/test_m_scaling.scad b/test/matrix/test_m_scaling.scad new file mode 100644 index 00000000..6f1aaf45 --- /dev/null +++ b/test/matrix/test_m_scaling.scad @@ -0,0 +1,12 @@ +use ; + +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(); \ No newline at end of file