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>

Christian Couder committed Jun 29, 2019 at 09:57 UTC fbec05c21093e0ffa44b0cfff8ce47e1b5461c4e
1 file changed +18
t/t0016-oidmap.sh
+18
@@ -67,6 +67,24 @@ Unknown oid: invalidOid
67
68 '
69
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 +
88 test_expect_success 'iterate' '
89
90 test_oidmap "put one 1