W dniu 2014-01-09 15:14, Paweł Kucmus pisze:
> In src/presence_analyzer/tests.py:
>
>> +        self.assertEqual(utils.interval(
>> +            datetime.time(13, 0, 0), datetime.time(12, 30, 0)), -1800)
>> +        self.assertEqual(utils.interval(
>> +            datetime.time(4, 4, 4), datetime.time(1, 30, 0)), -9244)
>> +        self.assertEqual(utils.interval(
>> +            datetime.time(0, 0, 0), datetime.time(23, 59, 59)), 86399)
>> +        self.assertEqual(utils.interval(
>> +            datetime.time(0, 0, 0), datetime.time(0, 0, 0)), 0)
>> +
>> +    def test_mean(self):
>> +        """
>> +        Test mean calculation
>> +        """
>> +        self.assertEqual(utils.mean([1, 2, 3, 4, 5, 6, 7]), 4)
>> +        self.assertEqual(utils.mean([30.3, 70.2, 1]), 33.833333333333336)
>> +        self.assertEqual(utils.mean([460, 123, 33.33333]), 205.44444333333334)
>
> ditto? tzn za dużo podobnych przypadków?

ditto = jak wyżej

-- 
Pozdrawiam, / Best regards,

Wojciech Lichota
CTO

-- 
STX Next Sp. z o.o.
Morawskiego 12/5, 60-239 Poznań, Polska
e-mail: wojciech.lichota@stxnext.pl
phone:  +48 61 610 13 07
mobile: +48 606 551 911
www: http://stxnext.pl