Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,17 @@ Testing
-------
If you installed DFO-GN manually, you can test your installation by running:

.. code-block:: bash

$ pytest

for Python 3.7+ (need `pytest <http://pytest.org>`_)

.. code-block:: bash

$ python setup.py test

for Python 2.7

Alternatively, the `documentation <https://numericalalgorithmsgroup.github.io/dfogn/>`_ provides some simple examples of how to run DFO-GN, which are also available in the examples directory.

2 changes: 1 addition & 1 deletion dfogn/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def runTest(self):
n = 10
x = np.sin(np.arange(n))
normx = np.sum(x**2)
self.assertAlmostEqual(normx, sumsq(x), 'Wrong answer')
self.assertAlmostEqual(normx, sumsq(x), msg='Wrong answer')


class TestEval(unittest.TestCase):
Expand Down