fixed the baker paper test

This commit is contained in:
Stephen Mardson McQuay 2011-05-04 21:08:48 -06:00
parent 1cde1d9a01
commit 08f898d83a

View File

@ -98,9 +98,7 @@ class Test(unittest.TestCase):
answer = baker.run_baker(self.X, R, S) answer = baker.run_baker(self.X, R, S)
a = answer['abc'][0] a, b, c = sorted(answer['abc'])
b = answer['abc'][1]
c = answer['abc'][2]
aa,bb,cc = sorted((2/3.0, 2/3.0, 1/3.0)) aa,bb,cc = sorted((2/3.0, 2/3.0, 1/3.0))
self.assertAlmostEqual(a,aa) self.assertAlmostEqual(a,aa)