Exemple #1
0
 def test_pairwise(self):
     """Test the itertools wrapper"""
     from eqcorrscan.utils.mag_calc import _pairwise
     pairs = _pairwise(range(20))
     for i, pair in enumerate(pairs):
         self.assertEqual(pair[0] + 1, pair[1])
     self.assertEqual(i, 18)
Exemple #2
0
 def test_pairwise(self):
     """Test the itertools wrapper"""
     from eqcorrscan.utils.mag_calc import _pairwise
     pairs = _pairwise(range(20))
     for i, pair in enumerate(pairs):
         self.assertEqual(pair[0] + 1, pair[1])
     self.assertEqual(i, 18)
Exemple #3
0
 def test_pairwise(self):
     """Test the itertools wrapper"""
     pairs = _pairwise(range(20))
     for i, pair in enumerate(pairs):
         self.assertEqual(pair[0] + 1, pair[1])
     self.assertEqual(i, 18)