1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-10-03 01:32:03 +02:00
Files
dotSCAD/test/matrix/test_m_replace.scad
Justin Lin 30b906a1c3 add test
2022-07-28 20:14:02 +08:00

24 lines
383 B
OpenSCAD

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();