mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-06 09:11:07 +08:00
Added more testing to instantiate some missing templates.
This commit is contained in:
1 parent
6a351ac050
commit
c29c44b450
3 files changed
+31
-1
No files matched your search
@@ -29,6 +29,10 @@ int main()
|
||||
assert(fabs(v2(1) - 5) < eps);
|
||||
assert(fabs(v2(2) - 6) < eps);
|
||||
|
||||
SquareMatrix<float, 3> m = diag(Vector3f(1,2,3));
|
||||
assert(fabs(m(0, 0) - 1) < eps);
|
||||
assert(fabs(m(1, 1) - 2) < eps);
|
||||
assert(fabs(m(2, 2) - 3) < eps);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user