def test_threshold(self):
    self.assertEqual(trivial.threshold(0.5, []), False)
    self.assertEqual(trivial.threshold(0.5, [0.0, 0.0]), True)
    self.assertEqual(trivial.threshold(0.5, [0.0, 0.4]), True)
    self.assertEqual(trivial.threshold(0.5, [0.0, 0.5]), True)
    self.assertEqual(trivial.threshold(0.5, [0.0, 0.6]), False)
    self.assertEqual(trivial.threshold(0.5, [0.0, 1.0]), False)
def test_threshold(self):
    self.assertEqual(trivial.threshold(0.5, []), False)
    self.assertEqual(trivial.threshold(0.5, [0.0, 0.0]), True)
    self.assertEqual(trivial.threshold(0.5, [0.0, 0.4]), True)
    self.assertEqual(trivial.threshold(0.5, [0.0, 0.5]), True)
    self.assertEqual(trivial.threshold(0.5, [0.0, 0.6]), False)
    self.assertEqual(trivial.threshold(0.5, [0.0, 1.0]), False)