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>maint
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
|
||||
|
|
Loading…
Reference in New Issue