Mercurial > hg > nsaunier > traffic-intelligence
comparison python/tests/utils.txt @ 745:3d0321abb564 dev
merged
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 10 Sep 2015 15:49:13 -0400 |
| parents | 4b3518f6dd01 |
| children | 8e8ec4ece66e |
comparison
equal
deleted
inserted
replaced
| 744:ed6ff2ec0aeb | 745:3d0321abb564 |
|---|---|
| 1 >>> from utils import * | 1 >>> from utils import * |
| 2 >>> from moving import Point | 2 >>> from moving import Point |
| 3 | |
| 4 >>> upperCaseFirstLetter('mmmm... donuts') | |
| 5 'Mmmm... Donuts' | |
| 6 >>> s = upperCaseFirstLetter('much ado about nothing') | |
| 7 >>> s == 'Much Ado About Nothing' | |
| 8 True | |
| 9 >>> upperCaseFirstLetter(s) == s | |
| 10 True | |
| 3 | 11 |
| 4 >>> computeChi2([],[]) | 12 >>> computeChi2([],[]) |
| 5 0.0 | 13 0.0 |
| 6 >>> computeChi2(range(1,10),range(1,10)) | 14 >>> computeChi2(range(1,10),range(1,10)) |
| 7 0.0 | 15 0.0 |
