Question: Do the following Problems: Program for Regular Expressions: Create a Python program that will open myFile.txt Read the lines and then print each line that
Do the following Problems:
Program for Regular Expressions: Create a Python program that will open myFile.txt Read the lines and then print each line that ends in the letters EX or has the letter A at the end of the line. Information on how to do this is in my slides and on the we
A unit test does not need to run the entire code, instead it just tests certain methods or functions in the application.
You are asked to write unit tests for two of the methods. The code you write in the unit test must check the methods you can't do it visually.
To determine how your unit test can verify the methods, you will need to determine what input will you need. For example, the unit test might fill the variable called row which is a list in the function createboardself Then it could test isboardfilledself A second test could partially fill the variable row and again test to see the return value from isboardfilledself
Now write unit tests for the methods:
isboardfilledself
fixspotself row, col, player
Then run the tests and see if everything passes.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
