Mercurial Hosting > traffic-intelligence
diff python/tests/moving.txt @ 91:daa05fae1a70
modified the type of the result of interval lengths to float, added comments
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 09 Jun 2011 16:03:17 -0400 |
parents | 5d487f183fe2 |
children | a5ef9e40688e |
line wrap: on
line diff
--- a/python/tests/moving.txt Thu Jun 09 11:27:31 2011 -0400 +++ b/python/tests/moving.txt Thu Jun 09 16:03:17 2011 -0400 @@ -5,16 +5,16 @@ >>> Interval(0,1).empty() False >>> Interval(0,1).length() -1 +1.0 >>> Interval(23.2,24.9).length() 1.6999999999999993 >>> Interval(10,8).length() -0 +0.0 >>> TimeInterval(0,1).length() -2 +2.0 >>> TimeInterval(10,8).length() -0 +0.0 >>> Point(3,4)-Point(1,7) (2.000000,-3.000000) @@ -31,8 +31,8 @@ True >>> t1 = Trajectory([[0.5,1.5,2.5],[0.5,3.5,6.5]]) ->>> t1.length() -3 +>>> t1.length() == 3. +True >>> t1[1] (1.500000,3.500000) >>> t1.getTrajectoryInPolygon1([Point(0,0),Point(4,0),Point(4,3),Point(0,3)])