From 2687844621093f98a8d4c747d3f4091f06c8c9f1 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 10 Mar 2022 20:13:12 +0800 Subject: [PATCH] add test --- test/matrix/test_m_translation.scad | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/matrix/test_m_translation.scad diff --git a/test/matrix/test_m_translation.scad b/test/matrix/test_m_translation.scad new file mode 100644 index 00000000..9751b54b --- /dev/null +++ b/test/matrix/test_m_translation.scad @@ -0,0 +1,13 @@ +use ; +use ; + +module test_m_translation() { + echo("==== test_m_translation ===="); + + expected = [[1, 0, 0, 10], [0, 1, 0, 20], [0, 0, 1, 0], [0, 0, 0, 1]]; + actual = m_translation([10, 20, 0]); + + assertEqualPoints(expected, actual); +} + +test_m_translation(); \ No newline at end of file