trueagi-io / metta-morph

Metta-morph (from Metamorphosis): Macro-based MeTTa to (Chicken) Scheme translator.
MIT License
7 stars 1 forks source link

Introduce unit tests for branch protection #16

Open Necr0x0Der opened 11 months ago

Necr0x0Der commented 11 months ago

Unit tests should systematically cover various aspects of MeTTa-Scheme interactions and run automatically for branch protection on github. Not working cases could possibly exist as skipped unit tests. More complex examples can remain as integration tests.

patham9 commented 11 months ago

I agree. It can be initially based on example1...6.metta in ./extend: Running automatically same file, once compiling the "to-compile-code" with compiler, one time also running the "to-compile-code" with the MeTTa interpreter, then checking whether the output matches. (same principle as in ./tests but this time MeTTa interpreter is involved in both cases, in one case calling the compiled code, in other case interpreting it). I can add a script which does this soon.

patham9 commented 11 months ago

Addressed: https://github.com/trueagi-io/metta-morph/pull/21