Friday, 6 February 2015

Test and Thoughts So Far

    I have had much time to reflect on the test given on Wednesday and have concluded that each question was exceptionally fair, exactly what we have been prepared for. The question on recursion was also very easy for me (hopefully I had the correct idea) which made it a very fun exercise for the topic I studied so carefully. As for my performance on said test, I feel that I knew all of the material and studied appropriately, however, I make a point of not trying to predict what my mark might be before I receive any grade.

    With regards to the discussion on Monday on test cases, I must say that I am very intimidated. Although I had a chance to practice with unittest in this week's lab, the topic was very difficult for me to accept last semester in CSC108. I think my issue was in my lack of understanding of how unittest works as a class and not knowing what the implementation of the method "unittest.TestCase" looks like. This being said, the actual implementation of a subclass of unittest.TestCase for a specific function is not at all a difficult concept for me and I do feel slightly more confident with this topic than in CSC108. Back to my confusion, the code seen under the "if __name__ == '__main__':" line in a test class continues to elude me. Why is it that "unittest.main(exit=False)" must be executed? What does "exit=False" do? I believe these are questions that I will have to answer on my own time, so perhaps this weekend I will read up on unittest to strengthen my understanding of this.

Also, I am not posting anything on recursion this week since I have nothing more to say about the topic. My thoughts on this can be found in last week's post.

No comments:

Post a Comment