The script checks if the input entered by user contains the word "complexety". If it does, the script shows a message about the error. The message also includes information about the correct way of spelling this word - "complexity".
TESTS:
-
Input: "complexity check" Expected result: "Correct!" Actual result: "Correct!"
-
Input: "complexety check" Expected result: "Error! Correct: complexity." Actual result: "Error! Correct: complexity."
-
Input: "complexetyyyy check" Expected result: "Correct!" Actual result: "Correct!"
-
Input: "ccccomplexety check" Expected result: "Correct!" Actual result: "Correct!"
!!! The script recognises as an incorrect word only the word "complexety" written with the lowercase letters.