update inline test

This commit is contained in:
rolux 2012-11-14 15:12:08 +01:00
parent 48f2c4f9ee
commit 666815f566

View file

@ -22,8 +22,8 @@ Ox.formatCount <f> Returns a string like "2 items", "1 item" or "no items".
'no items'
> Ox.formatCount(1, 'item')
'1 item'
> Ox.formatCount(1000, 'country', 'countries')
'1,000 countries'
> Ox.formatCount(1000, 'city', 'cities')
'1,000 cities'
@*/
Ox.formatCount = function(number, singular, plural) {
return (number === 0 ? 'no' : Ox.formatNumber(number)) + ' '