Mercurial Hosting > traffic-intelligence
diff python/tests/utils.txt @ 32:48e56179c39e
added ceil function
author | Nicolas Saunier <nico@confins.net> |
---|---|
date | Sat, 10 Apr 2010 18:58:43 -0400 |
parents | c000f37c316d |
children | 1a2ac2d4f53a |
line wrap: on
line diff
--- a/python/tests/utils.txt Sat Feb 13 19:46:33 2010 -0500 +++ b/python/tests/utils.txt Sat Apr 10 18:58:43 2010 -0400 @@ -8,6 +8,11 @@ >>> computeChi2(range(1,9),range(1,10)) 0.0 +>>> ceilDecimals(1.23, 0) +2.0 +>>> ceilDecimals(1.23, 1) +1.3 + >>> segmentIntersection(Point(0,0),Point(1,1), Point(0,1), Point(1,2)) >>> segmentIntersection(Point(0,1),Point(1,0), Point(0,2), Point(2,1)) >>> segmentIntersection(Point(0,0),Point(2,0), Point(1,-1),Point(1,1))