OSDN Git Service

t2020: test variations that matter
authorJunio C Hamano <gitster@pobox.com>
Wed, 6 Dec 2017 16:10:07 +0000 (08:10 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Dec 2017 16:10:07 +0000 (08:10 -0800)
commit64a5e98032d2462749021136a53d9e1928cd0db0
tree22d085c2ebdeb063d26008d9571f45477c17ca17
parentc2f1d39897535cfc0a6427aa2d5cb32043749397
t2020: test variations that matter

Because our test suite is not about validating the working of the
shell, it is pointless to test variations of how a literal string
'yes' is quoted when assigned to an environment variable.

Instead, test various ways to spell 'yes' (we use strcasecmp() so
uppercased and capitalized variant should work just like 'yes'
spelled in all lowercase) and make sure we take them as 'yes'.  That
is more relevant in testing Git.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2020-checkout-detach.sh