Mercurial > hg > nsaunier > traffic-intelligence
comparison python/tests/utils.txt @ 743:4b3518f6dd01 dev
tests for upperCaseFirstLetter
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 28 Aug 2015 10:42:00 -0400 |
| parents | fe71639f1ee7 |
| children | 8e8ec4ece66e |
comparison
equal
deleted
inserted
replaced
| 742:fe71639f1ee7 | 743:4b3518f6dd01 |
|---|---|
| 1 >>> from utils import * | 1 >>> from utils import * |
| 2 >>> from moving import Point | 2 >>> from moving import Point |
| 3 | 3 |
| 4 >>> upperCaseFirstLetter('mmmm... donuts') | 4 >>> upperCaseFirstLetter('mmmm... donuts') |
| 5 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 | |
| 6 | 11 |
| 7 >>> computeChi2([],[]) | 12 >>> computeChi2([],[]) |
| 8 0.0 | 13 0.0 |
| 9 >>> computeChi2(range(1,10),range(1,10)) | 14 >>> computeChi2(range(1,10),range(1,10)) |
| 10 0.0 | 15 0.0 |
