Mercurial > hg > nsaunier > traffic-intelligence
comparison python/tests/utils.txt @ 42:1a2ac2d4f53a
added loading of the rest of the data for objects
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 01 Jul 2010 10:44:32 -0400 |
| parents | 48e56179c39e |
| children | 74b1fc68d4df |
comparison
equal
deleted
inserted
replaced
| 41:eb78c6edc0c8 | 42:1a2ac2d4f53a |
|---|---|
| 24 | 24 |
| 25 >>> removeExtension('test-adfasdf.asdfa.txt') | 25 >>> removeExtension('test-adfasdf.asdfa.txt') |
| 26 'test-adfasdf.asdfa' | 26 'test-adfasdf.asdfa' |
| 27 >>> removeExtension('test-adfasdf') | 27 >>> removeExtension('test-adfasdf') |
| 28 'test-adfasdf' | 28 'test-adfasdf' |
| 29 | |
| 30 >>> values = line2Ints('1 2 3 5 6') | |
| 31 >>> values[0] | |
| 32 1 | |
| 33 >>> values[-1] | |
| 34 6 | |
| 35 >>> values = line2Floats('1.3 2.45 7.158e+01 5 6') | |
| 36 >>> values[0] | |
| 37 1.3 | |
| 38 >>> values[2] #doctest: +ELLIPSIS | |
| 39 71.5... | |
| 40 >>> values[-1] | |
| 41 6.0 |
