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 displayed
  • OK flag indicating successfull name test
  • o list of objects
  • n content of the names input field
  • i 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.