From: Steve Hancock Date: Wed, 29 Apr 2020 14:37:40 +0000 (-0700) Subject: add tests X-Git-Tag: 20200619~57 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b729e5e06105be7d59356820cc17d89c20006c05;p=perltidy.git add tests --- diff --git a/t/snippets/space6.in b/t/snippets/space6.in new file mode 100644 index 00000000..aaba6c46 --- /dev/null +++ b/t/snippets/space6.in @@ -0,0 +1,5 @@ +# test some spacing rules at possible filehandles +my $z=$x/$y; # ok to change spaces around both sides of the / +print $x / $y; # do not remove space before or after / here +print $x/$y; # do not add a space before the / here +print $x+$y; # do not add a space before the + here diff --git a/t/snippets/space6.par b/t/snippets/space6.par new file mode 100644 index 00000000..98846594 --- /dev/null +++ b/t/snippets/space6.par @@ -0,0 +1,2 @@ +-nwrs="+ - / *" +-nwls="+ - / *"