-
Notifications
You must be signed in to change notification settings - Fork 3
Unit checks
mkraska edited this page Mar 12, 2024
·
4 revisions
It is desirable to have unit checks for the meclib objects and the feedback functions.
- Integrity check when STACK or JSXGraph are updated
- Documentation of the expected behaviour
Some feedback functions have unit tests. These are STACK questions with name QAxx, found in the repository.
Some of them can be found in the Demo Moodle Course.
They compare the calculated feedback texts with reference texts. This can be done using the AlgEquiv answer test in response trees.
To compare castext() expressions, STACK 4.4.2 is required.
In order to try code snippets in jsfiddle,
- copy the code from the wiki page to the clipboard
- follow the link for the JSXGraph version you want to try
- Replace the code in the HTML section (contents of
<p hidden id="init">
) with the content of the clipboard