def test_sense(self):
        previous = self.scenario.sense()
        self.assertIsInstance(previous, BitString)
        self.assertTrue(len(previous) == self.scenario.input_size)
        while self.scenario.more():
            current = self.scenario.sense()
            self.assertIsInstance(current, BitString)
            self.assertTrue(len(current) == self.scenario.input_size)
            if current != previous:
                break
        else:
            self.fail("All situations are the same.")
dataset/ETHPy150Open hosford42/xcs/tests/test_haystackProblem.py/TestHaystackProblem.test_sense/original