We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c332e2 commit 7b860c3Copy full SHA for 7b860c3
1 file changed
test_add.py
@@ -1,25 +1,12 @@
1
+#writing test python code for testing conda yml
2
+def test_addition():
3
+ assert 1 + 1 == 2
4
-# sum of numbers
-import unittest
-def addition(a,b):
5
- return a+b
+def test_subtraction():
6
+ assert 5 - 3 == 2
7
-
8
-print(addition(2,3)) # Expected output:
9
10
-def addition(a, b):
11
- """Return the sum of a and b."""
12
- return a + b
13
14
-class TestAddition(unittest.TestCase):
15
- def test_basic(self):
16
- self.assertEqual(addition(2, 3), 5)
17
- self.assertEqual(addition(-1, 1), 0)
18
- self.assertEqual(addition(0, 0), 0)
19
20
-if __name__ == "__main__":
21
- # Run the tests
22
- unittest.main()
+def test_multiplication():
+ assert 5 * 2 == 10
23
24
25
0 commit comments