Friday, February 6, 2015

WEEK 5 SLOG

At the first few weeks, I feel stressed for studying CSC 148. The course is so compacted with lots of labs, slogs and assignments. I need to spend unlimited time on studying the course. The most biggest problems are that l cannot come up with an idea to write a code(the answer of a tricky question). l think that  l should boost the efficiency of thinking out of the solutions of questions. The main reason for this is that l didn't grasp the knowledge that l learned in lecture. l think the only way of solving it to do more practice, like the extra exercises in labs, as well as asking help for Ta or professor. In this week, we just learn the new thing relating to unittest, actually l feel confused about this concept. For example,  l don't know what’s the meaning of the code


    def testIsEmpty(self):
        '''Test is_empty on non_empty Stack.
        '''

        self.assertFalse(
            self.stack.is_empty(),
            'is_empty returned True on non-empty Stack!’)



Behind after  self.stack.is_empty(), why 'is_empty returned True on non-empty Stack!' be added?
Next week, we will learn unittest more deeply. Maybe l will understand.

No comments:

Post a Comment