Exemplo n.º 1
0
 def test_3n(self):
     self.assertEqual(salient([0, 1, 0]), [0, 1, 2])
Exemplo n.º 2
0
 def test_3down(self):
     self.assertEqual(salient([2, 1, 0]), [0, 2])
Exemplo n.º 3
0
 def test_3flat(self):
     self.assertEqual(salient([0, 0, 0]), [0, 2])
Exemplo n.º 4
0
 def test_2down(self):
     self.assertEqual(salient([1, 0]), [0, 1])
Exemplo n.º 5
0
 def test_2flat(self):
     self.assertEqual(salient([0, 0]), [0, 1])
Exemplo n.º 6
0
 def test_4up(self):
     self.assertEqual(salient([0, 1, 2, 3]), [0, 3])
Exemplo n.º 7
0
 def test_2up(self):
     self.assertEqual(salient([0, 1]), [0, 1])
Exemplo n.º 8
0
 def test_complex3(self):
     self.assertEqual(salient([0,2,4,6,8,7,6,7,8,7], 3), [0, 9])
Exemplo n.º 9
0
 def test_empty(self):
     self.assertEqual(salient([]), [])
Exemplo n.º 10
0
 def test_notch(self):
     self.assertEqual(salient([0,1,2,3,3,5,6,7]), [0, 7])
Exemplo n.º 11
0
 def test_complex1(self):
     self.assertEqual(salient([0,2,4,6,8,7,6,7,9,7]), [0, 4, 6, 8, 9])
Exemplo n.º 12
0
 def test_uhump(self):
     self.assertEqual(salient([1, 0, 0, 1]), [0, 1, 3])
Exemplo n.º 13
0
 def test_nhump(self):
     self.assertEqual(salient([0, 1, 1, 0]), [0, 1, 3])
Exemplo n.º 14
0
 def test_4down(self):
     self.assertEqual(salient([3, 2, 1, 0]), [0, 3])
Exemplo n.º 15
0
 def test_3u(self):
     self.assertEqual(salient([1, 0, 1]), [0, 1, 2])
Exemplo n.º 16
0
 def test_one(self):
     self.assertEqual(salient([0]), [0])
Exemplo n.º 17
0
 def test_3n_epsilon(self):
     self.assertEqual(salient([0, 1, 0], 2), [0, 2])
Exemplo n.º 18
0
 def test_3u_epsilon(self):
     self.assertEqual(salient([1, 0, 1], 2), [0, 2])