1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-16 13:50:05 +01:00
This commit is contained in:
Justin Lin 2022-07-28 20:14:02 +08:00
parent 047c175a19
commit 30b906a1c3
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
use <matrix/m_replace.scad>
module test_m_replace() {
echo("==== test_m_replace ====");
original_m = [
[1, 2, 3, 4],
[5, 6, 7, 8],
[9, 10, 11, 12]
];
expected = [
[1, 2, 3, 4],
[5, 6, 70, 8],
[9, 10, 11, 12]
];
actual = m_replace(original_m, 1, 2, 70);
assert(actual == expected);
}
test_m_replace();

View File

@ -105,6 +105,7 @@ include <matrix/test_m_scaling.scad>
include <matrix/test_m_translation.scad>
include <matrix/test_m_determinant.scad>
include <matrix/test_m_rotation.scad>
include <matrix/test_m_replace.scad>
// Voronoi
include <voronoi/test_vrn2_cells_space.scad>