Adds a test generation framework #5
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "test-generator-framework"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Prior to this PR, each type would have its own test handwritten suite. The end result was that not all types were tested for all situations.
This PR adds a framework based on a Markdown file, which generates the basic tests for the types defined in json files. These are auto generated and updated by the Makefile before the test suite is run.
Also, the test helpers can now properly import and export typed variables such as bytes, static arrays and tuples.
Also, adds better support for
i8type.Also, started on a runtime.py, since there's quite some code now that deals with compile time handling of WebAssembly stuff.
Also, minor improvement to the typing system. Better match for 'tuple' literals with static array types.
Also, reduced spam when printing the type analysis results; constraints that go back on the backlog are now no longer printed one by one. It now also prints the end results of the typing analysis.
Todo:
+3 and -3 as valid literals167560d7ddto97b61e3ee1Merged via command line
Pull request closed