Mercurial Hosting > traffic-intelligence
comparison python/tests/moving.txt @ 104:13187af8622d
finally added the representation of intervals
author | Nicolas Saunier <nico@confins.net> |
---|---|
date | Thu, 14 Jul 2011 17:15:09 -0400 |
parents | 9928c2fa72cc |
children | 916678481896 |
comparison
equal
deleted
inserted
replaced
103:1621b46a1523 | 104:13187af8622d |
---|---|
3 | 3 |
4 >>> Interval().empty() | 4 >>> Interval().empty() |
5 True | 5 True |
6 >>> Interval(0,1).empty() | 6 >>> Interval(0,1).empty() |
7 False | 7 False |
8 >>> Interval(0,1) | |
9 [0, 1] | |
8 >>> Interval(0,1).length() | 10 >>> Interval(0,1).length() |
9 1.0 | 11 1.0 |
10 >>> Interval(23.2,24.9).length() | 12 >>> Interval(23.2,24.9).length() |
11 1.6999999999999993 | 13 1.6999999999999993 |
12 >>> Interval(10,8).length() | 14 >>> Interval(10,8).length() |