test-parse-options: update to handle negative ints
commit81a48cc08033a453bcb884ec0838a8f064a6611e
authorCharles Bailey <cbailey32@bloomberg.net>
Sun, 21 Jun 2015 18:25:43 +0000 (21 19:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Jun 2015 22:04:23 +0000 (22 15:04 -0700)
tree424f6e59d7aa6832b63a04d8eea65630cca4b1f7
parent5c040f5af5898ce841cabdcda7bbdc38483123ef
test-parse-options: update to handle negative ints

Fix the printf specification to treat 'integer' as the signed type
that it is and add a test that checks that we parse negative option
arguments.

Signed-off-by: Charles Bailey <cbailey32@bloomberg.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0040-parse-options.sh
test-parse-options.c