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
BEAM sanity checks #689
BEAM sanity checks #689
Conversation
…as appropriate and consistent with the rest of the file.
I think this is a good idea to catch error in the input. We would however, need to update many tests (I should have a script that does it). I will just check with Laurent before I do the update. |
Great, thanks! I don't know how to see the actual output of the individual tests, is it that it is actually catching problematic input files, spitting out warnings? Or is it even catching pc < 0? |
Some of them are simply the warning which then changes the output put some are more serious. To see the results from the test you have to make numdiff and then simply make tests-all (or have a look at the Travis build. |
Hi, thanks! By gleaming at the Travis output I figured out how to run the test suite. It seems that the issue is that I get an overspecification warning from the beam command at the very beginning of the output, and this throws off the rest of the test:
This bogus warning of course has to be avoided... Time for some digging! |
OK, that fixed all the bugs - some in the code (initialization) and some in the test What remains seems to just be coveralls - but I can add a new test to purposely trigger the warnings? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent! Also very nice with a test!
Yeah, I figured out that there was already a relevant test so I just added it to that. Thanks for merging! |
Catch some problematic beam statements and emit warnings/fatal_error as appropriate and consistent with the rest of the file. Typos happen, and they are not always obvious; it is nice when the program detect a problem when it occurs and not later.
I think I kept to the style of the file, even fixed a formatting mistake another place in the file.