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

Write tests to ensure scripts fail gracefully #142

Open
Ratstail91 opened this issue Oct 15, 2024 · 1 comment
Open

Write tests to ensure scripts fail gracefully #142

Ratstail91 opened this issue Oct 15, 2024 · 1 comment
Labels
testing The tests ensure the lang works correctly

Comments

@Ratstail91
Copy link
Owner

No description provided.

@Ratstail91 Ratstail91 added feature New feature or request TODO A planned addition labels Oct 15, 2024
@Ratstail91 Ratstail91 changed the title Write tests for situations that must fail Write tests to ensure.corr Oct 20, 2024
@Ratstail91 Ratstail91 changed the title Write tests to ensure.corr Write tests to ensure scripts fail gracefully Oct 20, 2024
@Ratstail91 Ratstail91 added testing The tests ensure the lang works correctly and removed TODO A planned addition feature New feature or request labels Oct 20, 2024
Ratstail91 added a commit that referenced this issue Nov 12, 2024
I've brought the tests up to scratch, except for compounds im the
parser, because I'm too damn tired to do that over SSH. It looks like
collections are right-recursive, whixh was unintended but still works
just fine.

I've also added the '--verbose' flag to the repl to control the
debugging output.

Several obscure bugs have been fixed, and comments have been tweaked.

Mustfail tests are still needed, but that's a low priority. See #142.

Fixed #151
@Ratstail91
Copy link
Owner Author

Example of a malformed assignment

var a = 0;
var b = a = a + 1, 6;

Expected:

COMPILER ERROR: Invalid AST type found: Malformed assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing The tests ensure the lang works correctly
Projects
None yet
Development

No branches or pull requests

1 participant