def test_vector_add(self): self.assertEqual(maths.vector_add([1,2,3],[1,2,3]), [2,4,6])
def test_vector_add(self): self.assertEqual(maths.vector_add([1, 2, 3], [1, 2, 3]), [2, 4, 6])
#!/usr/bin/env python # system stuff import sys # local stuff from pdapt_lib.machine_learning import maths print('using python version = ') print(sys.version) print(maths.vector_add([1,1,1],[1,2,3])) print("testing factorial: ", maths.factorial(1000)) print("testing factorial: ", maths.factorial(100))