-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unit Testing #26
Comments
What command are you running in the terminal? |
You have to install |
I added a new test file ( This configuration for testing is based on the tests they'd grade us on for my programming class in the fall semester. There are some issues, most visibly with the imports—right now it's testing the package you've downloaded locally, not the file "next door" from the test file so to speak (see the comment in The syntax of the tests is relatively simple, it should be pretty easy to add more tests, but let me know any problems you run into (I have never made unit tests from scratch lol). |
That's sounds great! I'll start messing around with these. I'm having trouble getting it to test the local files also. I don't have |
Now in theory you shouldn't need to have |
Another update—I just put all of the test cases from your paper (from sections 3.2 for the valid rules and 3.3 for the invalid ones) in the file and labeled them to match those in the paper. I think that took care of everything that's in the current version of |
Awesome! I got most of the tests working where only 4 were slow. I have copied them below for convenience:
I got the first one to pass on the MIT server, but the second took ages, and the third and fourth failed. I'm going to comment these out, as well as the R10 which was slow. That way |
This is low priority but want to log details here. I've been working on writing unit tests and am getting the following error when running
pytest
in theCode
directory:The relevant lines of code in
syntax.py:130
are:The comments are some of what I have tried. Not totally sure what it is unhappy about.
The text was updated successfully, but these errors were encountered: