/ test / matrix / test_m_translation.scad
test_m_translation.scad
 1  use <matrix/m_translation.scad>
 2  
 3  module test_m_translation() {
 4      echo("==== test_m_translation ====");
 5  
 6      expected = [[1, 0, 0, 10], [0, 1, 0, 20], [0, 0, 1, 0], [0, 0, 0, 1]];
 7      actual = m_translation([10, 20, 0]);
 8      
 9      assert(expected == actual);
10  }
11  
12  test_m_translation();