Fix test_update_returns_state to flatten Kalman output (#35083)

fix(tests): flatten Kalman filter output in test_update_returns_state
This commit is contained in:
William Bonilla
2025-04-28 16:30:16 -04:00
committed by GitHub
parent c4acae6b51
commit c5b75168e9

View File

@@ -24,6 +24,6 @@ class TestSimpleKalman:
self.kf.set_x([[1.0], [1.0]])
assert self.kf.x == [[1.0], [1.0]]
def update_returns_state(self):
def test_update_returns_state(self):
x = self.kf.update(100)
assert x == self.kf.x
assert x == [i[0] for i in self.kf.x]