## Test suites

Consecutive to these bugs detection, it appeared that some attempts to fix bugs in the old versions of CLASS77 and CLASS90 had broken other parts of the averaging code. Again, this is because of all the different modes to take into account.

A set of procedures are now available as both demos and test suites. They are in particular aimed to checked the influence of any futur code modification:

- LAS90> @ gag_demo:demo-accu [C|V|F|*] [I|C|*] [E|T|S|*] [A|O|*]
- LAS90> @ gag_demo:demo-aver [C|V|F|*] [I|C|*] [E|T|S|*] [A|O|*]

These procedures invoke respectively the ACCUMULATE and AVERAGE commands, with Alignment, Range, Weight and Bad arguments. A star '*' will test all the possible values for the considered argument. Default is to check all the values and all the combinations.

These demos run on a set a spectra and try to combine them in different ways. The input spectra include: different intensities, blanked channels, different abscissae definitions (ranges, reference channels, resolutions), different parameters which influence the weighting. On return the demos try to do their best to compute themselves an average spectrum with can be compared to the output from ACCUMULATE or AVERAGE. In particular, they invoke the RESAMPLE command of CLASS to perform their own resampling.