pf-tools/pf-tools: use syntax with bracket to avoid 'undef => qq...
parmelan-guest at users.alioth.debian.org
parmelan-guest at users.alioth.debian.org
Fri Dec 5 10:11:06 UTC 2014
details: http://hg.debian.org/hg/pf-tools/pf-tools/rev/61c3ac21ae37
changeset: 1345:61c3ac21ae37
user: melkor <melkor at sitadelle.com>
date: Fri Dec 05 11:06:53 2014 +0100
description:
use syntax with bracket to avoid 'undef => qq{}' taken as a HASH
diffstat:
t/10.whitespace.t | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
diffs (27 lines):
diff -r 0107b4d43e81 -r 61c3ac21ae37 t/10.whitespace.t
--- a/t/10.whitespace.t Fri Dec 05 10:41:13 2014 +0100
+++ b/t/10.whitespace.t Fri Dec 05 11:06:53 2014 +0100
@@ -17,18 +17,13 @@
qr{\A ERROR: [ ] Invalid [ ] non-scalar [ ] string [ ] }xms
=> 'Non-scalar argument';
-is trim_surrounding_whitespace(), undef
- => q{Returns undef if no arg};
+is (trim_surrounding_whitespace(), undef, q{Returns undef if no arg});
-is trim_surrounding_whitespace( q{} ), q{}
- => q{Returns empty string if empty string};
+is (trim_surrounding_whitespace( q{} ), q{}, q{Returns empty string if empty string});
-is trim_surrounding_whitespace( qq{ \t } ), q{}
- => q{Returns empty string if only whitespace};
+is (trim_surrounding_whitespace( qq{ \t } ), q{}, q{Returns empty string if only whitespace});
-is trim_surrounding_whitespace( q{ abc } ), q{abc}
- => q{One word};
+is (trim_surrounding_whitespace( q{ abc } ), q{abc}, q{One word});
-is trim_surrounding_whitespace( q{ a b c } ), q{a b c}
- => q{Several words separated by whitespace};
+is (trim_surrounding_whitespace( q{ a b c } ), q{a b c}, q{Several words separated by whitespace});
More information about the pf-tools-commits
mailing list