예제 #1
0
파일: test.py 프로젝트: teedee22/Math
 def test_allows_integer_input(self):
     self.assertEqual(vectorScale([3, 4], 5), [15, 20])
예제 #2
0
파일: test.py 프로젝트: teedee22/Math
 def test_allows_3d_input(self):
     self.assertEqual(vectorScale([4, 8, 2], 2), [8, 16, 4])
예제 #3
0
파일: test.py 프로젝트: teedee22/Math
 def test_allows_negative_input(self):
     self.assertEqual(vectorScale([-3, -0.5], -1), [3, 0.5])
예제 #4
0
파일: test.py 프로젝트: teedee22/Math
 def test_allows_zero_input(self):
     self.assertEqual(vectorScale([0, 0], 0), [0, 0])
예제 #5
0
파일: test.py 프로젝트: teedee22/Math
 def test_allows_float_input(self):
     self.assertEqual(vectorScale([3.2, 3.8], 6.3), [20.16, 23.94])