Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm a bit confused about this approach of disabling the tests. Why have this commented line here? It's not as if you'd ever want to uncomment it, right?
And then the
#ifdef TEST_FAILURES
doesn't sound intuitive - the code is enabled if there are test failures?I think it would be more descriptive to call the macro variable something like
ENABLE_FAILING_TESTS
and then enclose the ruleset in:I wouldn't keep any commented out define line either.
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.
With Gregory enhancing gaiat while I am writing
gaiat
tests, I try to get ahead of him with tests that won't pass yet. For bettor or worse, I have a convention in the test files to disable tests that don't pass yet. The disabling of this one test simply follows the pattern that is already in place. It's a reminder to me of tests to re-test when there is a new commit from Gregory. Eventually, all of the#ifdef
statements will be gone. BTW the name TEST_FAILURES means "test the failures" and is facilitated by uncommenting the#define
. This is transitional as Gregory and I move forward withgaiat
.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.
The ambiguity is that in this context "test" is used more like a noun than a verb.
Also, do you really want to test all the failures in the file, or do you want to test them one by one (in which case the top define is irrelevant)?
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.
Is it possible to make this test part of Gregory's branch? You can update the PR to merge the change to his branch. Logistic wise, we won't need to re-enable this after Gregory's change is in and the test can be used to test gaiat change in the local branch before merging to master.
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.
I'm going to work with Gregory to find better ways to synchronize the language enhancements with the tests. Obviously this shouldn't interfere with the build. Thanks for the suggestions.
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.
Sounds good.