Skip to content
Snippets Groups Projects
Commit 4c9b91eb authored by ehcole's avatar ehcole
Browse files

initial commit

parents
No related branches found
No related tags found
No related merge requests found
File added
File added
rpn.py 0 → 100755
#!/usr/bin/env python3
def calculate(arg):
pass
def main():
while True:
calculate(input("rpn calc> "))
if __name__ == '__main__':
main()
import unittest
import rpn
class TestBasics(unittest.TestCase):
def test_add(self):
result = rpn.calculate('1 1 +')
self.assertEqual(2, result)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment