Skip to content

Instantly share code, notes, and snippets.

@yuda110
Created April 29, 2016 13:43
Show Gist options
  • Save yuda110/330dc355409529f9fff2d00b7662fccd to your computer and use it in GitHub Desktop.
Save yuda110/330dc355409529f9fff2d00b7662fccd to your computer and use it in GitHub Desktop.
import e37
import unittest
class TestSplitFunction(unittest.TestCase):
def test_is_prime(self):
r = e37.is_prime(3797)
self.assertTrue(r)
r = e37.is_prime(24)
self.assertFalse(r)
def test_is_still_prime(self):
r = e37.is_still_prime(3797)
self.assertTrue(r)
r = e37.is_still_prime(222)
self.assertFalse(r)
if __name__ == '__main__':
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment