예제 #1
0
 def get(self, base_num):
     result = json.dumps(compute_sequence(base_num))
     return result
예제 #2
0
 def get(self, base_num):
     result = json.dumps(compute_sequence(base_num))
     return result
 def test_sequence(self):
     result = compute_sequence(0)
     self.assertEqual(result, [0, 1])
 def test_sequence_string_input(self):
     result = compute_sequence('1')
     self.assertEqual(result, [0, 1])
예제 #5
0
 def test_sequence(self):
     result = compute_sequence(0)
     self.assertEqual(result, [0, 1])
예제 #6
0
 def test_sequence_string_input(self):
     result = compute_sequence('1')
     self.assertEqual(result, [0, 1])