mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-07-31 03:50:27 +02:00
add test
This commit is contained in:
31
test/matrix/test_m_determinant.scad
Normal file
31
test/matrix/test_m_determinant.scad
Normal file
@@ -0,0 +1,31 @@
|
||||
use <matrix/m_determinant.scad>;
|
||||
|
||||
module test_m_scaling() {
|
||||
echo("==== test_m_determinant ====");
|
||||
|
||||
assert(
|
||||
m_determinant([
|
||||
[3, 8],
|
||||
[4, 6]
|
||||
]) == -14
|
||||
);
|
||||
|
||||
assert(
|
||||
m_determinant([
|
||||
[6, 1, 1],
|
||||
[4, -2, 5],
|
||||
[2, 8, 7]
|
||||
]) == -306
|
||||
);
|
||||
|
||||
assert(
|
||||
m_determinant([
|
||||
[0, 4, 0, -3],
|
||||
[1, 1, 5, 2],
|
||||
[1, -2, 0, 6],
|
||||
[3, 0, 0, 1]
|
||||
]) == -250
|
||||
);
|
||||
}
|
||||
|
||||
test_m_determinant();
|
@@ -99,6 +99,7 @@ include <voxel/test_vx_contour.scad>;
|
||||
// Matrix
|
||||
include <matrix/test_m_scaling.scad>;
|
||||
include <matrix/test_m_translation.scad>;
|
||||
include <matrix/test_m_determinant.scad>;
|
||||
|
||||
// Voronoi
|
||||
include <voronoi/test_vrn2_cells_space.scad>;
|
||||
|
Reference in New Issue
Block a user