ICS4

HT

Testing Code:

   
         
  	#Humyra Taifoor
	#Testing Encryption Functions
	#November 19 2018

	import itertools                            #imports itertools and allows the comparison of 2 lists
	import time                                 #imports the time module

	def testing_1():
	    """(str)-> str
	    Runs the code with the assigned test cases and compares the expected outputs and the actual outputs.
	    If the expcted output and the actual output match, then it returns pass, if not, then it returns false.
	    >>>testing_1('hi')
	    Pass
	    >>>testing_1('123community')
	    Pass
	    """
	    print("Using the first method of encryption, our test cases are 'hi', '123community','dollar for your sadness','cOm+5l![At3D_w. str
	    Runs the code with the assigned test cases and compares the expected outputs and the actual outputs.
	    If the expcted output and the actual output match, then it returns pass, if not, then it returns false.
	    >>>testing_2('ihoy')
	    Pass
	    >>>testing_2('ytinummoc321oy')
	    Pass
	    """
	    print("Using the first method of decryption, our test cases are 'ihoy', 'ytinummoc321oy', 'ssendas ruoy rof rallodoy','/?<.w_D3tA[!l5+mOcoy',''|'85+4^2*2oy', '   oy'")
	    print("and the expected outputs are 'hi', '123community','dollar for your sadness','cOm+5l![At3D_w. str
	    Runs the code with the assigned test cases and the assigned key and compares the expected outputs and the actual outputs.
	    If the expcted output and the actual output match, then it returns pass, if not, then it returns false.
	    >>>testing_3('hi')
	    Pass
	    >>>testing_3('|')
	    False
	    """
	    print("Using the second method of encryption, in which the key is '5', our test cases are 'hi', '123community',")
	    print("'dollar for your sadness','cOm+5l![At3D_w. str
	    Runs the code with the assigned test cases and the assigned key and compares the expected outputs and the actual outputs.
	    If the expcted output and the actual output match, then it returns pass, if not, then it returns false.
	    >>>testing_4('mn')
	    Pass
	    >>>testing_4('�')
	    False
	    """
	    print("Using the second method of decryption, in which the key is '5', our test cases are 'ihoy', 'ytinummoc321oy',")
	    print("'ssendas ruoy rof rallodoy','/?<.w_D3tA[!l5+mOcoy',''|'85+4^2*2oy', '   oy','|'','|'")
	    print("And the expected outputs are 'hi', '123community','dollar for your sadness','cOm+5l![At3D_w.