Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t0016: add 'remove' subcommand test
author
Christian Couder
<christian.couder@gmail.com>
Sat, 29 Jun 2019 07:57:47 +0000
(09:57 +0200)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
84f559f
)
diff --git
a/t/t0016-oidmap.sh
b/t/t0016-oidmap.sh
index af17264ce334cb98f0276af4184f409e0850d22d..bbe719e9509689e38dd1d524d5d4b57de934a757 100755
(executable)
--- a/
t/t0016-oidmap.sh
+++ b/
t/t0016-oidmap.sh
@@
-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