mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
[copybara] Resync robotpy (#8585)
Project import generated by Copybara.
GitOrigin-RevId: fd000778e9b78c72cc7ca7b2ebe476129b78c6e0
This commit is contained in:
@@ -73,7 +73,13 @@ def test_init_rotation_matrix():
|
||||
assert expected2 == rot2
|
||||
|
||||
# Matrix that isn't orthogonal
|
||||
R3 = np.array([[1.0, 0.0, 0.0], [1.0, 0.0, 0.0], [1.0, 0.0, 0.0]])
|
||||
R3 = np.array(
|
||||
[
|
||||
[1.0, 0.0, 0.0],
|
||||
[1.0, 0.0, 0.0],
|
||||
[1.0, 0.0, 0.0],
|
||||
]
|
||||
)
|
||||
with pytest.raises(ValueError):
|
||||
Rotation3d(R3)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user