Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2019-06-29 10:57:47 +0300
committerJunio C Hamano <gitster@pobox.com>2019-07-01 20:26:33 +0300
commitfbec05c21093e0ffa44b0cfff8ce47e1b5461c4e (patch)
tree72a1732403038e5944d2d8be3d7c76f0d264b6ab /t/t0016-oidmap.sh
parent84f559f7507c349edc6d4888b515340ecbd667e1 (diff)
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>
Diffstat (limited to 't/t0016-oidmap.sh')
-rwxr-xr-xt/t0016-oidmap.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/t0016-oidmap.sh b/t/t0016-oidmap.sh
index af17264ce3..bbe719e950 100755
--- 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