testing: More restructuring for the Nose source
[swc-testing-nose.git] / testing / nose / exercises / mean / README.md
1 # Writing tests for `mean()`
2
3 There are a few tests for the `mean()` function.  What are some tests
4 that should fail?  Add at least three test cases to this set.  Edit
5 the `test_mean.py` file which tests the `mean()` function in
6 `mean.py`.
7
8 *Hint:* Think about what form your input could take and what you should
9 do to handle it. Also, think about the type of the elements in the list.
10 What should be done if you pass a list of integers? What if you pass a
11 list of strings?
12
13  You can test a particular implementation by using `PYTHONPATH`:
14
15     $ PYTHONPATH=basic nosetests test_mean.py
16     $ PYTHONPATH=exceptions nosetests test_mean.py