summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornjsmith <njs@pobox.com>2013-07-26 08:42:27 -0700
committernjsmith <njs@pobox.com>2013-07-26 08:42:27 -0700
commit895866d337fedb2018a076002ebb9ea49fa397f3 (patch)
tree3338e0d61046a79686be90cd2edb57e86b3b6a70
parentdc9ff0d60cd0e48875247c9bc5db772db5ed754d (diff)
parent4259c4eb6a23d72f56d4fa45bc65947fd731cf27 (diff)
downloadnumpy-895866d337fedb2018a076002ebb9ea49fa397f3.tar.gz
Merge pull request #3550 from endolith/patch-1
DOC:Some minor proofreading of Tests introduction
-rw-r--r--doc/TESTS.rst.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/TESTS.rst.txt b/doc/TESTS.rst.txt
index 92f236f5a..2b66b5caa 100644
--- a/doc/TESTS.rst.txt
+++ b/doc/TESTS.rst.txt
@@ -68,7 +68,7 @@ you'd like to become part of SciPy, please write the tests as you
develop the package. Also since much of SciPy is legacy code that was
originally written without unit tests, there are still several modules
that don't have tests yet. Please feel free to choose one of these
-modules to develop test for either after or even as you read through
+modules and develop tests for it as you read through
this introduction.
Writing your own tests
@@ -199,9 +199,9 @@ with test generators::
for i in range(0,4,2):
yield check_even, i, i*3
-Note that 'check_even' is not itself a test (no 'test' in the name),
-but 'test_evens' is a generator that returns a series of tests, using
-'check_even', across a range of inputs.
+Note that ``check_even`` is not itself a test (no 'test' in the name),
+but ``test_evens`` is a generator that returns a series of tests, using
+``check_even``, across a range of inputs.
A problem with generator tests can be that if a test is failing, it's
hard to see for which parameters. To avoid this problem, ensure that:
@@ -220,7 +220,7 @@ hard to see for which parameters. To avoid this problem, ensure that:
Doctests
--------
-Doctests are a convenient way of documenting the behavior a function
+Doctests are a convenient way of documenting the behavior of a function
and allowing that behavior to be tested at the same time. The output
of an interactive Python session can be included in the docstring of a
function, and the test framework can run the example and compare the