Skip to content

Commit 485e726

Browse files
committed
Solution for List-1/make_pi
1 parent cc4fe5b commit 485e726

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

List-1/make_pi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def make_pi():
2+
return [3, 1, 4]

List-1/test_make_pi.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import unittest
2+
import make_pi
3+
4+
class TestMakePi(unittest.TestCase):
5+
def testMakePi(self):
6+
self.assertEqual(make_pi.make_pi(), [3, 1, 4])
7+
8+
9+
if __name__ == '__main__':
10+
unittest.main()

0 commit comments

Comments
 (0)