compare_values

Summary

compare_values(frbValue, yamlValue, attribute)

A function that compares two values, one from the Fortune Avenue-compatible .frb board file, and the other from the Map Descriptor .yaml file.

The attribute parameter tells the function what we’re comparing, so we can build the error message appropriately if it doesn’t match.

Parameters:
  • frbValue (string) – The value from the .frb file.

  • yamlValue (string) – The value from the .yaml file.

  • attribute (string) – The attribute, in string form, which we are comparing.

Importing

from cs_board_tools.validation.consistency import compare_values