* tests/sanity/style.test: Allow {{x}} in constructors.

This commit is contained in:
Alexandre Duret-Lutz 2018-05-24 18:02:59 +02:00
parent c87c13db67
commit b17a9f8578

View file

@ -245,7 +245,7 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do
# with parentheses, as this often occur with lambdas or # with parentheses, as this often occur with lambdas or
# initializer lists. What we want to forbid is cases where # initializer lists. What we want to forbid is cases where
# multiple scopes are opened/closed on the same line. # multiple scopes are opened/closed on the same line.
$GREP '^[^()]*}[^()]*}[^()]*$' $tmp && $GREP '^[^():]*}[^()]*}[^()]*$' $tmp &&
diag 'No two } on the same line.' diag 'No two } on the same line.'
$GREP '^[^()]{[^()]*{[^()]$' $tmp && $GREP '^[^()]{[^()]*{[^()]$' $tmp &&