t0016: add 'remove' subcommand test
authorChristian Couder <christian.couder@gmail.com>
Sat, 29 Jun 2019 07:57:47 +0000 (09:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jul 2019 17:26:33 +0000 (10:26 -0700)
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>
t/t0016-oidmap.sh
index af17264ce334cb98f0276af4184f409e0850d22d..bbe719e9509689e38dd1d524d5d4b57de934a757 100755 (executable)
@@ -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