jak-project/test/goalc
2020-10-03 18:32:01 -04:00
..
framework Final polish on the integer tests, time to start converting the rest 2020-10-03 18:32:01 -04:00
source_generated Final polish on the integer tests, time to start converting the rest 2020-10-03 18:32:01 -04:00
source_templates Concept is working, just needs some polish and can start translating the tests 2020-09-26 18:48:40 -04:00
README.md Concept is working, just needs some polish and can start translating the tests 2020-09-26 18:48:40 -04:00
test_compiler_integer.cpp Final polish on the integer tests, time to start converting the rest 2020-10-03 18:32:01 -04:00

Goal:

Create a flexible test framework for testing GOAL code:

  • pass in templated GOAL files to easily test many/large cases of tests
  • probably need macros / helper functions around things like:
    • generating math expressions in post-fix (we need to know the result to assert it)
  • if a test fails, need to print out the code / save it to a file so it can be inspected

The real selling point is being able to three-fold:

  • Reduce the number of compiler test files, while still maintaining the same test-coverage
  • Easily create stressful tests for the compiler, make test combinations
  • Have the expected test result in the same place as the test code, no need to cross-reference .gc file