Created
January 11, 2023 19:05
-
-
Save HectorTorres/756b9adb7df6de00033ea401928b1ec4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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