qdbplang / qdbp

MIT License
51 stars 1 forks source link

Language testing #26

Open dghosef opened 1 year ago

dghosef commented 1 year ago

This issue is for discussion of qdbp unit testing. We need testing framework(s) for qdbp, ocaml, and C components including

We should also use some sort of static analysis on generated C code and UB sanitizers, memory sanitizers, etc. Also, make a pre-push hook that requires test to past

dghosef commented 1 year ago

One possible testing strategy: make qdbp's tests double as useful programs. For example,

dghosef commented 1 year ago

In addition to end-to-end tests we should also test unusual cases that won't happen much. Including

dghosef commented 1 year ago

We also need tests for the type system - that we error when we should and don't error when we should

dghosef commented 1 year ago

To test associativity we should have programs that typecheck only when associativity is correct