Skip to content

Commit a316481

Browse files
author
Father Chrysostomos
committed
Add tests for runaway q«« strings
fixed by cb65013.
1 parent 7f7f7d0 commit a316481

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

t/lib/croak/toke

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,3 +330,23 @@ Version control conflict marker at - line 1, near "<<<<<<<"
330330
Version control conflict marker at - line 3, near "======="
331331
Version control conflict marker at - line 5, near ">>>>>>>"
332332
Execution of - aborted due to compilation errors.
333+
########
334+
# NAME (Might be a runaway multi-line...) with Latin-1 delimiters in utf8
335+
BEGIN { binmode STDERR, ':utf8' }
336+
use utf8;
337+
338+
« time
339+
EXPECT
340+
syntax error at - line 4, near "« time"
341+
(Might be a runaway multi-line «« string starting on line 3)
342+
Execution of - aborted due to compilation errors.
343+
########
344+
# NAME (Might be a runaway multi-line...) with non-Latin-1 delimiters
345+
BEGIN { binmode STDERR, ':utf8' }
346+
use utf8;
347+
q ϡ
348+
ϡ time
349+
EXPECT
350+
syntax error at - line 4, near "ϡ time"
351+
(Might be a runaway multi-line ϡϡ string starting on line 3)
352+
Execution of - aborted due to compilation errors.

0 commit comments

Comments
 (0)