Skip to content

Commit b256d21

Browse files
committed
Improve spec-runner to normalize nth-child binomial spacing
1 parent a3bf746 commit b256d21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/99_sass_specs.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ my $norm_output = sub ($) {
7272
$_[0] =~ s/\/libsass-closed-issues\//\/libsass-issues\//g;
7373
$_[0] =~ s/\Q$cwd_win\E[\/\\]t[\/\\]sass-spec[\/\\]/\/sass\//g;
7474
$_[0] =~ s/\Q$cwd_nix\E[\/\\]t[\/\\]sass-spec[\/\\]/\/sass\//g;
75+
# normalize nth-child binomial whitespace
76+
$_[0] =~ s/\(\s*(\d+n)\s*([+-])\s*(\d+)\s*\)/($1 $2 $3)/g;
7577
}
7678
};
7779

0 commit comments

Comments
 (0)