Permalink
Browse files

Some stats tests

  • Loading branch information...
1 parent 8b9f9d3 commit 9deb7f04b20ab1e2b58f3f18c36ff9cd2e268e47 Andreas Pauley committed Mar 25, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 sudoku.py
View
@@ -204,6 +204,12 @@ def test():
assert peers['C2'] == set(['A2', 'B2', 'D2', 'E2', 'F2', 'G2', 'H2', 'I2',
'C1', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8', 'C9',
'A1', 'A3', 'B1', 'B3'])
+ [total, avg, max, min] = stats([5, 8, 2])
+ assert total == 15
+ assert avg == 5
+ assert max == 8
+ assert min == 2
+
print 'All tests pass.'
if __name__ == '__main__':

0 comments on commit 9deb7f0

Please sign in to comment.