diff options
author | Christian Schneider | 2021-01-13 16:13:25 +0100 |
---|---|---|
committer | Christian Schneider | 2021-01-13 16:13:25 +0100 |
commit | 81e5fda87626dfe94d46be511ebc546076b1975b (patch) | |
tree | 9669ecb252500e514ff932df2e1036ab13cf8008 /test/getopt.t | |
parent | 1f57cc663c83ec44ec292256147f9811945e260a (diff) | |
download | itools-81e5fda87626dfe94d46be511ebc546076b1975b.tar.gz itools-81e5fda87626dfe94d46be511ebc546076b1975b.tar.bz2 itools-81e5fda87626dfe94d46be511ebc546076b1975b.zip |
Unified brace and else if style
Diffstat (limited to 'test/getopt.t')
-rwxr-xr-x | test/getopt.t | 3 |
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); |