Skip to content

Commit

Permalink
updated helpers_test
Browse files Browse the repository at this point in the history
  • Loading branch information
Prikshit7766 committed Oct 1, 2023
1 parent 555b1fe commit d8ea377
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions tests/helpers_test.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
#
# utils test
#

import sys

sys.path.append("..")

import unittest

from utils import capture_maths_eval_print

from greenberry.helpers import capture_print, maths_eval

class GBUtilsTests(unittest.TestCase):
def test_maths_eval_add(self):
x = "3+2-1"
output = capture_maths_eval_print(x)
output = capture_print(maths_eval, x)
self.assertEqual(output, "4")


Expand Down

0 comments on commit d8ea377

Please sign in to comment.