summaryrefslogtreecommitdiff
path: root/test/getopt.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/getopt.t')
-rwxr-xr-xtest/getopt.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/getopt.t b/test/getopt.t
index 48f7d9d..77e52ae 100755
--- a/test/getopt.t
+++ b/test/getopt.t
@@ -18,7 +18,8 @@ function getopt_ok($argv, $exp, $name)
return is($got, $exp, $name);
}
-foreach (["" => "blah gnaber", " (umlaute)" => "pre üäpost"] as $variant => $testarg) {
+foreach (["" => "blah gnaber", " (umlaute)" => "pre üäpost"] as $variant => $testarg)
+{
$exp = ['args' => [], 'positional' => $testarg, 'argument' => $testarg, 'default' => 'defäult'];
getopt_ok([$testarg, '-a', $testarg], $exp, "Short version" . $variant);
getopt_ok([$testarg, '--argument', $testarg], $exp, "Long version with space" . $variant);