Skip to content

Commit 4127892

Browse files
committed
Re-enable the spelling test.
This has been broken since 6a69c0b (May 2018); awk's `gsub` returns the replacement count, not the substituted string, so we were spellchecking integers rather than doc content. This commit also drops deletion of `:` to prevent numerous false positives from type smilies. Backslash is still stripped per #975.
1 parent f650dfe commit 4127892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xt/aspell.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ sub test-it($promises, $file) {
6060
for @files -> $file {
6161
my $input-file = $file.ends-with('.pod6') ?? Pod::Cache.cache-file($file) !! $file;
6262

63-
my $fixer = Proc::Async.new('awk', 'BEGIN {print "!"} {print "^" gsub(/[\\:]/,"",$0)}', $input-file);
63+
my $fixer = Proc::Async.new('awk', 'BEGIN {print "!"} {gsub("\\\\","",$0); print "^" $0}', $input-file);
6464
my $proc = Proc::Async.new(<aspell -a -l en_US --ignore-case --extra-dicts=./xt/aspell.pws>);
6565
$proc.bind-stdin: $fixer.stdout: :bin;
6666
%output{$file}="";

0 commit comments

Comments
 (0)