Add Interpreter tests and improve Parser error logging
A set of tests for the InterpreterObject has been added to enhance its reliability and maintainability. The tests check the essential functionalities such as its creation, execution, saving, loading, and destruction. Furthermore, the error logging for the Parser has been improved, now providing more precise location of detected errors. The changes improve the robustness and debugability of the code.
This commit is contained in:
parent
0cefb47b66
commit
b06e1da529
3 changed files with 44 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ using namespace obj;
|
|||
|
||||
void testCore();
|
||||
void testPrimitives();
|
||||
void testInterpreter();
|
||||
|
||||
int main() {
|
||||
|
||||
|
|
@ -20,6 +21,7 @@ int main() {
|
|||
|
||||
testCore();
|
||||
testPrimitives();
|
||||
testInterpreter();
|
||||
|
||||
module.deinitialize();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue