Unit checks - mkraska/meclib GitHub Wiki

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

STACK questions as unit tests

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.

Using s_assert()

See Stack documentation

CI in STACK