MoASM Examples

⛔ [DEPRECATED] Will be moved to https://github.com/yamini-vm/moasm.git soon.

This repository has two important uses:

  1. It provides valid code examples of programs that MoASM assembler can run successfully.
  2. It provides a test suite which tests the MoASM assembler for correctness, by checking the output of the examples with their expected outputs.

Running testcases

  1. Using pytest:
user@programmer~:$ pytest tests/* -s
  1. Using unittest module:
user@programmer~:$ python tests/code_tests.py

Use case 2

The second use case (testing the MoASM assembler) is only for MoASM contributors, to check if their changes broke any running program or not.