Skip to content

Instantly share code, notes, and snippets.

@HectorTorres
Created January 11, 2023 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HectorTorres/756b9adb7df6de00033ea401928b1ec4 to your computer and use it in GitHub Desktop.
Save HectorTorres/756b9adb7df6de00033ea401928b1ec4 to your computer and use it in GitHub Desktop.
import unittest
def function_square(a):
return a*a
class Test(unittest.TestCase):
def test_function_square(self):
self.assertEquals(function_square(2),4)
#run the program
#python -m unittest test_unit_01.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment