Replies: 2 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I can imagine that some libraries might need regression testing of a highly technical nature that users would rather not see. But in the case of the So I have included test code at the bottom of the module itself, and exported a self-test predicate: ?- use_module(library(numerics/special_functions)).
true.
?- test_special_functions.
Looking for counterexamples ..
% erf is odd
% pos root of erf(x)-x
% erfc ≈ 1 - erf
% inverf ≈ erf⁻¹
% ('false' is good)
false. Given that I do however use the |
Beta Was this translation helpful? Give feedback.
-
When contributing a module via PR, what are best practices for bundling tests with the contribution?
initialization/1
) when they are loaded?/tests/scryer/cli/
? Is this a suitable place to lodge tests for contributed modules?Beta Was this translation helpful? Give feedback.
All reactions