- Finished unit tests for core math library
- Adjusted formatting
This commit is contained in:
@@ -120,7 +120,7 @@ inline void fennec_test_math_matrix()
|
||||
|
||||
|
||||
|
||||
fennec_test_header("matrix equality operators");
|
||||
fennec_test_section("matrix equality operators");
|
||||
|
||||
fennec_test_spacer(1);
|
||||
|
||||
@@ -138,7 +138,7 @@ inline void fennec_test_math_matrix()
|
||||
|
||||
|
||||
|
||||
fennec_test_header("matrix constructors");
|
||||
fennec_test_section("matrix constructors");
|
||||
|
||||
fennec_test_spacer(1);
|
||||
|
||||
@@ -156,7 +156,7 @@ inline void fennec_test_math_matrix()
|
||||
|
||||
|
||||
|
||||
fennec_test_header("matrix-scalar operators");
|
||||
fennec_test_section("matrix-scalar operators");
|
||||
|
||||
fennec_test_spacer(1);
|
||||
|
||||
@@ -169,7 +169,7 @@ inline void fennec_test_math_matrix()
|
||||
|
||||
|
||||
|
||||
fennec_test_header("matrix-vector operators");
|
||||
fennec_test_section("matrix-vector operators");
|
||||
|
||||
fennec_test_spacer(1);
|
||||
|
||||
@@ -187,7 +187,7 @@ inline void fennec_test_math_matrix()
|
||||
|
||||
|
||||
|
||||
fennec_test_header("matrix-matrix operators");
|
||||
fennec_test_section("matrix-matrix operators");
|
||||
|
||||
fennec_test_spacer(1);
|
||||
|
||||
@@ -315,11 +315,13 @@ inline void fennec_test_math_matrix()
|
||||
|
||||
fennec_test_section("inverse");
|
||||
|
||||
fennec_test_spacer(2);
|
||||
fennec_test_spacer(1);
|
||||
|
||||
fennec_test_run(fennec::inverse(mat2(1, 2, 3, 4)), mat2(-2, 1, 1.5, -0.5));
|
||||
fennec_test_run(fennec::inverse(mat3(1, 2, 3, 0, 1, 4, 5, 6, 0)), mat3(-24, 18, 5, 20, -15, -4, -5, 4, 1));
|
||||
fennec_test_run(fennec::inverse(mat4(2, 1, -3, 4, -1, 0, 2, 5, 3, 2, 1, 0, 4, -2, 3, 1)), (1.0f / 414.0f) * mat4(36, -39, 33, 51, -18, 31, 133, -83, -72, 55, 49, 13, 36, 53, -13, 5));
|
||||
|
||||
fennec_test_spacer(2);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user