Skip to content

Commit fbec05c

Browse files
chriscoolgitster
authored andcommitted
t0016: add 'remove' subcommand test
Testing the 'remove' subcommand was forgotten when t0016 was created. Let's fix that. Helped-by: Derrick Stolee <[email protected]> Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 84f559f commit fbec05c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

t/t0016-oidmap.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,24 @@ Unknown oid: invalidOid
6767
6868
'
6969

70+
test_expect_success 'remove' '
71+
72+
test_oidmap "put one 1
73+
put two 2
74+
put three 3
75+
remove one
76+
remove two
77+
remove invalidOid
78+
remove four" "NULL
79+
NULL
80+
NULL
81+
1
82+
2
83+
Unknown oid: invalidOid
84+
NULL"
85+
86+
'
87+
7088
test_expect_success 'iterate' '
7189
7290
test_oidmap "put one 1

0 commit comments

Comments
 (0)