-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix line endings in co19 repository #2242
Comments
The new CRLF test could have all combinations (a line ending in |
All tests in this repository now have LF line ending. Added two tests that check that CRLF (Windows) and CR (Old Mac) line endings are supported. As for LFCR ( |
I think we can potentially have any and all combinations of line ending characters (for example, because a file gets created on Linux and edited on Windows and then on an old Mac, etc), and the grammar says that they are all possible. For example, So it could still be useful to have that check: "weird combinations of line endings in the same file will not crash the parser". ;-) |
Just in case someone at some point in the future runs > sha1sum line_endings_cr_t01.dart
e5f6d574fd33f3aaf7ba24701d9f8472ba4cd175 line_endings_cr_t01.dart |
I'm sure that it's possible but I don't see an immediate solution. As far as I can see SDK tests below also don't have such protection
Probably it makes sense to create SDK infra issue. But there's a contra as well. This protection will complicate process of changing these tests |
Makes sense! I'm trying out the idea in dart-lang/sdk#53398. |
2023-09-04 sgrekhov22@gmail.com dart-lang/co19#2145. Fix roll failure (LateInitializationError) (dart-lang/co19#2257) 2023-09-04 sgrekhov22@gmail.com dart-lang/co19#2145. Add more local variable declaration tests (dart-lang/co19#2254) 2023-09-01 49699333+dependabot[bot]@users.noreply.github.com Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/co19#2256) 2023-09-01 sgrekhov22@gmail.com dart-lang/co19#2213. Fix stack trace comparison (dart-lang/co19#2255) 2023-09-01 sgrekhov22@gmail.com dart-lang/co19#2145. Update variables tests according to the current spec. Part 2 (dart-lang/co19#2240) 2023-08-31 sgrekhov22@gmail.com dart-lang/co19#2242. Add LFCR line ending test (dart-lang/co19#2251) 2023-08-31 sgrekhov22@gmail.com dart-lang/co19#2145. Rename Local Variable declaration tests. Delete duplicates (dart-lang/co19#2252) 2023-08-30 sgrekhov22@gmail.com dart-lang/co19#2242. Add line endings tests (dart-lang/co19#2250) 2023-08-30 sgrekhov22@gmail.com Fixes dart-lang/co19#2245. Fix expectations in static_analysis_extension_types_A24_t02.dart (dart-lang/co19#2248) 2023-08-30 sgrekhov22@gmail.com dart-lang/co19#2242. Change CRLF line endings to LF (dart-lang/co19#2249) 2023-08-30 sgrekhov22@gmail.com Fixes dart-lang/co19#2244. Fix typo in dynamic_semantics_member_invocation_A01_t02.dart (dart-lang/co19#2247) 2023-08-30 sgrekhov22@gmail.com Fixes dart-lang/co19#2243. Remove duplicated constructors (dart-lang/co19#2246) 2023-08-29 sgrekhov22@gmail.com dart-lang/co19#2145. Update assertions and descriptions in the current Local variable declaration tests (dart-lang/co19#2241) 2023-08-25 sgrekhov22@gmail.com Fixes dart-lang/co19#2235. Add missing operator tests (dart-lang/co19#2239) 2023-08-25 sgrekhov22@gmail.com dart-lang/co19#2119. Code format and description update in operator tests (dart-lang/co19#2238) Change-Id: I5aeac05c1aa4cbaa0762ce4f23c1ee916d1006a1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/324040 Reviewed-by: Alexander Thomas <athom@google.com>
Some of the files in co19 repository have CRLF line ending. Need to change it to standard LF but add one test with CRLF line ending to check that tools accept it
See #2240 (comment)
The text was updated successfully, but these errors were encountered: