Skip to content

Commit

Permalink
Make tests pass on single-digit days of month
Browse files Browse the repository at this point in the history
Previously, a regex used to match the result of __DATE__ would fail on
the 1st through 9th of a month, because it expected one space between
the month and day instead of two.
  • Loading branch information
pbackus authored and Geod24 committed Jun 2, 2020
1 parent 6e41655 commit 7f0e3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/fail_compilation/fail7524a.d
Expand Up @@ -3,7 +3,7 @@ REQUIRED_ARGS: -o-
TEST_OUTPUT:
----
fail_compilation/fail7524a.d(10): Error: #line integer ["filespec"]\n expected
fail_compilation/fail7524a.d(10): Error: declaration expected, not `"$r:\w+ \d+ \d+$"`
fail_compilation/fail7524a.d(10): Error: declaration expected, not `"$r:\w+ +\d+ \d+$"`
----
*/

Expand Down

0 comments on commit 7f0e3e6

Please sign in to comment.