mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-07-31 20:10:36 +02:00
add test
This commit is contained in:
13
test/matrix/test_m_translation.scad
Normal file
13
test/matrix/test_m_translation.scad
Normal file
@@ -0,0 +1,13 @@
|
||||
use <unittest.scad>;
|
||||
use <matrix/m_translation.scad>;
|
||||
|
||||
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();
|
Reference in New Issue
Block a user