--- trunk/thuban/test/test_classgen.py 2003/07/01 16:11:26 1344 +++ trunk/thuban/test/test_classgen.py 2003/07/01 16:11:38 1345 @@ -47,30 +47,30 @@ eq = self.assertEquals gs = generate_singletons - ramp = GreyRamp() + ramp = GreyRamp _list = [1, 2, 3, 4] - cl = gs(_list, len(_list), ramp) + cl = gs(_list, ramp) self.doClassSingleTest(cl, _list) _list = range(0, 100) - cl = gs(_list, len(_list), ramp) + cl = gs(_list, ramp) self.doClassSingleTest(cl, _list) _list = range(-100, 100) - cl = gs(_list, len(_list), ramp) + cl = gs(_list, ramp) self.doClassSingleTest(cl, _list) _list = ['a', 'b', 'c', 'd'] - cl = gs(_list, len(_list), ramp) + cl = gs(_list, ramp) self.doClassSingleTest(cl, _list) _list = [] - cl = gs(_list, len(_list), ramp) + cl = gs(_list, ramp) self.doClassSingleTest(cl, _list) _list = [1] - cl = gs(_list, len(_list), ramp) + cl = gs(_list, ramp) self.doClassSingleTest(cl, _list) @@ -79,7 +79,7 @@ eq = self.assertEquals gud = generate_uniform_distribution - ramp = GreyRamp() + ramp = GreyRamp cl = gud(0, 99, 10, ramp, True) self.doClassRangeTest(cl, ("[0;10[", "[10;20[", "[20;30[", "[30;40[", @@ -110,7 +110,7 @@ gq = generate_quantiles - ramp = GreyRamp() + ramp = GreyRamp adj, cl = gq([1, 2, 3, 4], [.25, .5, .75, 1.0], ramp, Range("[1;4]")) self.failIf(adj)