Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test we do not refer to curly quotes as smart
  • Loading branch information
zoffixznet committed Dec 12, 2016
1 parent 967a64b commit f30510e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion integration/error-reporting.t
Expand Up @@ -2,7 +2,7 @@ use v6;
use lib 't/spec/packages';

use Test;
plan 30;
plan 31;

use Test::Util;

Expand Down Expand Up @@ -245,4 +245,15 @@ subtest 'composition errors do not crash when printing (RT129906)' => {
'Accessing X::Composition::NotComposable.message does not crash';
}

subtest 'curly quotes are not called smart quotes' => {
my @quotes = , , , , , ;
plan +@quotes;

for @quotes -> $q {
throws-like $q, Exception,
:message{ not .contains('smart') and .contains('curly') },
"$q (U+$q.ord.base(16)) quote is called curly, not smart";
}
}

# vim: ft=perl6

0 comments on commit f30510e

Please sign in to comment.