]> git.donarmstrong.com Git - perltidy.git/commitdiff
add tests
authorSteve Hancock <perltidy@users.sourceforge.net>
Wed, 29 Apr 2020 14:37:40 +0000 (07:37 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Wed, 29 Apr 2020 14:37:40 +0000 (07:37 -0700)
t/snippets/space6.in [new file with mode: 0644]
t/snippets/space6.par [new file with mode: 0644]

diff --git a/t/snippets/space6.in b/t/snippets/space6.in
new file mode 100644 (file)
index 0000000..aaba6c4
--- /dev/null
@@ -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 (file)
index 0000000..9884659
--- /dev/null
@@ -0,0 +1,2 @@
+-nwrs="+ - / *"
+-nwls="+ - / *"