mirror of
https://github.com/git/git.git
synced 2026-01-16 05:41:29 +00:00
t0016: add 'remove' subcommand test
Testing the 'remove' subcommand was forgotten when t0016 was created. Let's fix that. Helped-by: Derrick Stolee <stolee@gmail.com> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
84f559f750
commit
fbec05c210
@@ -67,6 +67,24 @@ Unknown oid: invalidOid
|
||||
|
||||
'
|
||||
|
||||
test_expect_success 'remove' '
|
||||
|
||||
test_oidmap "put one 1
|
||||
put two 2
|
||||
put three 3
|
||||
remove one
|
||||
remove two
|
||||
remove invalidOid
|
||||
remove four" "NULL
|
||||
NULL
|
||||
NULL
|
||||
1
|
||||
2
|
||||
Unknown oid: invalidOid
|
||||
NULL"
|
||||
|
||||
'
|
||||
|
||||
test_expect_success 'iterate' '
|
||||
|
||||
test_oidmap "put one 1
|
||||
|
||||
Reference in New Issue
Block a user