fb_bar_name - mkraska/meclib GitHub Wiki
Feedback function for reactions replacing "bar" objects.
[text,OK]: fb_bar_name(o, n, i)
text
the feedback text to be displayedOK
flag indicating successfull name testo
list of objectsn
content of thenames
input fieldi
index of the bar element
Checks performed:
- Is the base name a single character F, S, or N?
- If the reaction name has an index and the bar has a label, do these match?
There is a unit test for this function: QA 02
in the Demo Moodle Course.