/SIMPL-Cases

Tiny script to compare SIMPL test outputs to supplied test cases.

Primary LanguagePythonThe UnlicenseUnlicense

SIMPL-Cases

Tiny script to compare SIMPL test outputs to supplied test cases.

Requirements

  • Python 3.10
  • SIMPL Project :P

Instructions

  • Make a new folder (or use an existing one) in the root of the project called tests

image

  • Place extracted folders from the Official Test Cases (ie. 01_scanner and 02_parser) in the tests folder

image

  • Place testcases.py in the tests folder, too

image

  • Run the following command from within the tests folder:
$ python3.10 testcases.py scanner
  • wherein scanner can be substituted by any of the following
    • parser (tests parser)
    • all (tests scanner and parser)
    • compile (only tests to see if testscanner and testparser can compile)