예제 #1
0
 def test_is_arithmetic_sequence_true_1(self):
     self.assertTrue(is_arithmetic_sequence([1, 2, 3]))
예제 #2
0
 def test_is_arithmetic_sequence_false_1(self):
     self.assertFalse(is_arithmetic_sequence([]))
예제 #3
0
 def test_is_arithmetic_sequence_false_2(self):
     self.assertFalse(is_arithmetic_sequence([1487, 4817, 8148]))
예제 #4
0
 def test_is_arithmetic_sequence_true_4(self):
     self.assertTrue(is_arithmetic_sequence([1487, 4817, 8147]))
예제 #5
0
 def test_is_arithmetic_sequence_true_6(self):
     self.assertTrue(is_arithmetic_sequence([4817, 1487, 8147, 11477]))
예제 #6
0
 def test_is_arithmetic_sequence_true_1(self):
     self.assertTrue(is_arithmetic_sequence([1, 2, 3]))
예제 #7
0
 def test_is_arithmetic_sequence_false_2(self):
     self.assertFalse(is_arithmetic_sequence([1487, 4817, 8148]))
예제 #8
0
 def test_is_arithmetic_sequence_false_1(self):
     self.assertFalse(is_arithmetic_sequence([]))
예제 #9
0
 def test_is_arithmetic_sequence_true_6(self):
     self.assertTrue(is_arithmetic_sequence([4817, 1487, 8147, 11477]))
예제 #10
0
 def test_is_arithmetic_sequence_true_4(self):
     self.assertTrue(is_arithmetic_sequence([1487, 4817, 8147]))