Commit 0997ea3e authored by Ankit  Agade's avatar Ankit Agade
Browse files

Revert "Merge branch 'dev' into 'main'"

This reverts merge request !1
parent 7bcceae0
Showing with 0 additions and 35 deletions
+0 -35
variables:
example: this is an example variable
stages:
- stage1
- stage2
build:
stage: stage1
script:
- echo "We are currently in stage 1"
- echo "These are the contents of test.py"
- cat test.py
- echo $example
test:
stage: stage2
script:
- echo "We are currently in stage 2"
- echo "running python script"
- python3 test.py
\ No newline at end of file
File deleted
def sum(a,b):
return a+b
\ No newline at end of file
import unittest
from sum import sum
class TestCalculations (unittest.TestCase):
def test_sum(self):
self.assertEqual(sum(8,2), 10,'sum is wrong')
self.assertEqual(sum(4,3), 7,'sum is wrong')
self.assertEqual(sum(-2,1), -1,'sum is wrong')
self.assertEqual(sum(4,5), 9,'sum is wrong')
self.assertEqual(sum(0,0), 0,'sum is wrong')
print("all test cases passed")
if __name__ =='__main__':
unittest.main()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment