def test_indicators_threshold(self):
        """Test getting the on-off indicators with a threshold."""
        ts = TimeSeries()
        ts.array.resize(3)
        ts.array[0] = (np.uint32(1), np.float32(0.0))
        ts.array[1] = (np.uint32(2), np.float32(1.0))
        ts.array[2] = (np.uint32(3), np.float32(2.0))

        indicators_test = np.array([False, False, True])
        indicators = ts.indicators(np.float32(1.1))

        self.assertItemsEqual(indicators, indicators_test)