-
Notifications
You must be signed in to change notification settings - Fork 173
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
Test for language features #157
Comments
The manual says the pieces of an arithmetic expression have the same semantics as in C, so here are some tests for
|
Thanks. I'd not considered that "C semantics" leads to imposing these requirements on |
I've just pushed a change that implements compile-time evaluation of numeric subexpressions and tests (mostly as a step towards a longer term plan to track possible ranges for the values of integer and boolean variables, cursor position, length of the current string, slice positions, etc, through the program as there are optimisations we can do based on these). This is relevant here as the division test code above will need revising so we test division semantics of generated code in the target language rather than in the compiler. |
It would be good to have testing of Snowball language features (especially those not used by any current algorithm implementation) which ran for each target language.
As David Corbett noted in #156, several backends weren't implementing integer division. I've fixed them, but we lack a regression test, and lack automated testing that new backends get this right.
This is the test code I added at the start of
stem
inenglish.sbl
locally to check these fixes worked and that other backends weren't affected:The text was updated successfully, but these errors were encountered: