This week, I learned about how to find good test subjects
for running unit test. For example, for testing the minimax strategy for the
subtract square game, a unittest subject of 11 is worthless as any possible
answers would fulfill the minimax requirement so therefore 11 is a terrible
choice and would only test that the minimax function would return an int or
not. A good unittest subject would be something like 25 where the minimax
function should only return 25 as it is the only number that leads to a sure
victory, hence eliminating passing the unittest due to randomness.
I really enjoyed doing the devise subtract square tests
worksheet in class with professor Heap leading the way to help understand what
is a good test case for unittest. The step by step process in the worksheet is
a very methodical way for me to learn how to make that judgement. With this
worksheet, I definitely speeded up the process of learning how to pick the appropriate
test cases for any particular unittest (especially the ones where it is testing
functions that has randomness in it) so this is something I really appreciate.
I found the assumption question about linked list that professor
Heap raised up in this week’s lecture is difficult to understand. I felt pretty
frustrated that I did not really know what the assumption is as I still seem to
have difficulty visualizing the whole linked list concept. I asked professor
Heap after class for clarification and now I can say I do have a better
understanding of this question now.
I am confident in the material covered this week largely thanks
to the devise subtract square worksheet and the lecture this well. This
methodical teaching method really clicked with me so I feel like I have a good
grasp of this week’s material. I do have to say since around 30% of the lecture
is introducing assignment 3, there was not whole lot of material that was
presented.
I was proud that I know I had the correct answer for the
minimax function of assignment 2 as professor Heap presented the model answer
of the minimax function and it was pretty similar in terms of the execution.
This has to be my biggest achievement tin csc148 his week in a somewhat quite
week for this course.
As TAs were again on strike this week, the tutorial was
essentially forced to cancel so I only worked on the tutorial on my own during
my spare time. I found that the tutorial’s instruction was clear and I was able
to follow it to the end. Although I completed it but I still have to look at
the answers for this week lab when it’s posted to see if I have the correct
answer or not.
No comments:
Post a Comment