blob: b977925575469da0865a64247e04a0e31eab982c [file] [log] [blame]
Yuheng Long49358b72013-07-10 14:45:29 -07001"""Generation unittest.
2
3Part of the Chrome build flags optimization.
4"""
Yuheng Longf20cffa2013-06-03 18:46:00 -07005
6__author__ = 'yuhenglong@google.com (Yuheng Long)'
7
8import unittest
9
10import generation
11
12
13class 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
43if __name__ == '__main__':
44 unittest.main()