We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b0ff7 commit 2aaf525Copy full SHA for 2aaf525
1 file changed
bit_manipulation/test_scale_list.py
@@ -0,0 +1,11 @@
1
+import unittest
2
+from bit_manipulation.scale_list import scale_list
3
+
4
+class TestScaleList(unittest.TestCase):
5
+ def test_scaling(self):
6
+ self.assertEqual(scale_list([1, 2, 3], 2), [2, 4, 6])
7
+ self.assertEqual(scale_list([-1, -2], 3), [-3, -6])
8
+ self.assertEqual(scale_list([0, 1], 0), [0, 0])
9
10
+if __name__ == "__main__":
11
+ unittest.main()
0 commit comments