-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Cleanup SyntaxNormalizerTests
#65516
Conversation
I've resolved all test fails on unix systems and ready for review now |
@DoctorKrolic is this fixing any bugs? Or is this a style refactoring? |
I would call it a style refactoring, but the main motivation here is readability. As per discussion in #65249 (comment) I was actually allowed to do this) |
I didn't understand the motivation for this part. |
As for me, long multiline strings as attribute parameters look really odd. Usually attributes contain some short easy-to-sequentially-read things. When they had single-line string it was kinda halfway right. When I converted them to raw strings, however, I decided, that it look better, when these values are somewhere in method body. + many tests already used this pattern with several test cases in single test method (even before my previous PR with initializers), so it also makes thing more consistent. I can totally revert this if you don't share this point of view. |
@jcouv @CyrusNajmabadi for review |
@jcouv @CyrusNajmabadi Still waiting for a review here... |
We typically don't accept PRs that focus on code style. That said, given that this is a test-only PR (which therefore only needs one compiler review) and we have the required review, we'll go ahead and merge. |
Note: i don't personally feel this is code-style. These single-line tests are actually quite painful to work with, requiring lots of manual minging of \r\n in the comments, and basically often obfuscating what's actually going on (like what the test is testing against and what it is validating). A prime use case for raw-strings was exactly 'tests', with a bunch of enthusiasm from compiler side about being able to move these forward to this more maintainable form :) |
I'm very late on this, but thanks for the contribution @DoctorKrolic! |
NormalizeLineEndings
callsWorkItem
attribute placement consistent:[Fact, WorkItem...]
Theory
s toFact
s when inline data contains string with line breaksstatic