Skip to content
Snippets Groups Projects
Commit d44983aa authored by Daniel Rafeh's avatar Daniel Rafeh
Browse files

Test 19/19 erfolgreich

parent 4bee07da
No related branches found
No related tags found
2 merge requests!4Main,!2Main to develop
...@@ -128,5 +128,9 @@ class TestConverter(unittest.TestCase): ...@@ -128,5 +128,9 @@ class TestConverter(unittest.TestCase):
res = self.c.convert(4.3) res = self.c.convert(4.3)
self.assertEqual(res, "Bitte ganze Zahlen eingeben") self.assertEqual(res, "Bitte ganze Zahlen eingeben")
def test_convertNegative(self):
res = self.c.convert(-4)
self.assertEqual(res, "Es sind nur positive Zahlen zum konvertieren erlaubt")
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
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