Skip to content
Snippets Groups Projects
Verified Commit ab8ebdd8 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

Update CONTRIBUTING.md

(cherry picked from commit 70379401)
parent d887e683
Branches
No related tags found
No related merge requests found
...@@ -101,7 +101,8 @@ It's useful to contribute `.mod` files that test some aspect of Dynare that is n ...@@ -101,7 +101,8 @@ It's useful to contribute `.mod` files that test some aspect of Dynare that is n
### Unitary Tests ### Unitary Tests
So-called unitary tests allow the test suite to check the correct functioning of the Matlab functions contained in Dynare. To add a unitary test you need to So-called unitary tests allow the test suite to check the correct functioning of the Matlab functions contained in Dynare. To add a unitary test you need to
1. add the keyword ` % --*-- Unitary tests --*--` at the end of the `function` header to tell the testsuite that the file contains unitary tests. 1. Add the particular tests at the end of the file (either after a `return` or the closing `end`) by 1. add the keyword ` % --*-- Unitary tests --*--` at the end of the `function` header to tell the testsuite that the file contains unitary tests.
1. Add the particular tests at the end of the file (either after a `return` or the closing `end`) by
a. Starting a test with `%@test:INTEGER` a. Starting a test with `%@test:INTEGER`
b. Adding a Matlab test code that provides a pass/fail indicator `T` that takes on `true` if the test passed. b. Adding a Matlab test code that provides a pass/fail indicator `T` that takes on `true` if the test passed.
c. Closing the test with `%@eof:INTEGER` c. Closing the test with `%@eof:INTEGER`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment