Testing

  • A format expression is made up of subexpressions.
  • All expressions can generate a parser, so each component can be tested individually

add_test("AC (block)", AC_block, """\
AC   Q62671; Q05349; Q05351; Q05352; Q05353; Q05354; Q05355; Q05356;
AC   Q92671; Q95349; Q95351; Q95352; Q95353; Q95354; Q95355; Q95356;
AC   Q98763;
""")

add_lax_text("AC (get the names)", AC_line",
             "AC   P00321; P05348;\n",
             {"ac_number": ("P00321", "P05348")})

 
.