arcana-lab / memoir

A case for representing data collections and objects in the LLVM IR
MIT License
11 stars 2 forks source link

Update to new testing framework #75

Closed tommymcm closed 2 weeks ago

tommymcm commented 2 weeks ago

To better organize the testing framework, I have added cmemoir/test.hpp, which allows you to register tests and expected outputs.

int main() {
  TEST(my_test) {
    int x = 0;
    expect(x == 0, "x not equal to 0");
  }
}

Low priority, but all existing tests should be ported to this structure.

tommymcm commented 2 weeks ago

This is completed and all tests have been updated as of 5174179