Yuheng Long | 49358b7 | 2013-07-10 14:45:29 -0700 | [diff] [blame] | 1 | """Generation unittest. |
| 2 | |
| 3 | Part of the Chrome build flags optimization. |
| 4 | """ |
Yuheng Long | f20cffa | 2013-06-03 18:46:00 -0700 | [diff] [blame] | 5 | |
| 6 | __author__ = 'yuhenglong@google.com (Yuheng Long)' |
| 7 | |
| 8 | import unittest |
| 9 | |
| 10 | import generation |
| 11 | |
| 12 | |
| 13 | class GenerationTest(unittest.TestCase): |
| 14 | """This class test the Generation class. |
| 15 | |
| 16 | A generation class should not produce a task that has been generated before. |
| 17 | The task returned as the best task should really be the best. |
| 18 | |
| 19 | Given two generations, if the second one has improved upon the first one, |
| 20 | the result method should return true and false otherwise. |
| 21 | """ |
| 22 | |
| 23 | def setUp(self): |
| 24 | pass |
| 25 | |
| 26 | def testNext(self): |
| 27 | """"Test the next method. |
| 28 | |
| 29 | Call the next method n times and all the tasks in each generation should be |
| 30 | unique. |
| 31 | """ |
| 32 | pass |
| 33 | |
| 34 | def testImprove(self): |
| 35 | """"Test the improve method. |
| 36 | |
| 37 | If the successor generation has improvement upon the parent generation, the |
| 38 | result from the improve method should indicate so. |
| 39 | """ |
| 40 | |
| 41 | pass |
| 42 | |
| 43 | if __name__ == '__main__': |
| 44 | unittest.main() |