Move test functions from main source to unit tests
Joseph Parker
Branch: feature/use-tests-type
feature/use-tests-type
Branch: next
next
Merged
#93 · Created  · Last updated
Merged pull request
Merged in feature/use-tests-type (pull request #93)
acacbeb·Author: Joseph Parker·Closed by: Joseph Parker·2019-04-09
Description
Many unit-testing-specific functions are written in the main source code, rather than in the unit tests. This is confusing, since it means the unit test source code often doesn’t contain the actual test! This PR moves such functions back into the unit tests.
Â
This also makes a nonlinear_testing type that allows an otherwise-private subroutine (`add_nl`) to be called by unit tests (see PR #79). The original plan was to do this for other tests, but all the other functions that get called are either modified for use by unit tests or public anyway.
Many unit-testing-specific functions are written in the main source code, rather than in the unit tests. This is confusing, since it means the unit test source code often doesn’t contain the actual test! This PR moves such functions back into the unit tests.
Â
This also makes a
nonlinear_testing
type that allows an otherwise-private subroutine (`add_nl`) to be called by unit tests (see PR #79). The original plan was to do this for other tests, but all the other functions that get called are either modified for use by unit tests or public anyway.