Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assembler-specific and Interpreter-specific tests #229

Open
tomhea opened this issue Sep 16, 2023 · 0 comments
Open

Assembler-specific and Interpreter-specific tests #229

tomhea opened this issue Sep 16, 2023 · 0 comments
Labels
backlog This should be worked on, someday.. enhancement New feature or request

Comments

@tomhea
Copy link
Owner

tomhea commented Sep 16, 2023

Current tests support:

The current tests test the stl-library, and system/integration test the combined assembler + interpreter. This issue suggests that the assembler and the interpreter need a testing mechanism for themselves. unit-test their functionalities, their features, and their error handling and edge cases.

Compiler-specific & interpreter-specific tests will benefit in the following ways:

  • Regression Prevention
  • Bug Detection

Compiler unit tests ideas:

  • Test macro creation
  • Test usage of every "rule"
  • Test bad rules
  • Assert that weird expressions fail
  • Assert that names in expressions are only from the expected life-span

Interpreter unit tests ideas:

  • Test the debugger (with mocks)
  • Test run errors
  • Test handling inputs/outputs (maybe the different IODevices.
  • Test reading bad fjm files

More tests:

  • Test assemble and run with different memory widths and different fjm versions.
  • test a simple loop/double-loop program (like print all primes under 100)
@tomhea tomhea added the enhancement New feature or request label Sep 18, 2023
@tomhea tomhea added the backlog This should be worked on, someday.. label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog This should be worked on, someday.. enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant