mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-16 13:50:05 +01:00
add test
This commit is contained in:
parent
047c175a19
commit
30b906a1c3
24
test/matrix/test_m_replace.scad
Normal file
24
test/matrix/test_m_replace.scad
Normal 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();
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user