git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] t0016: add 'remove' subcommand test

From
Christian Couder <christian.couder@gmail.com>
Date
Jun 29, 2019, 07:57 UTC
Message-ID
<20190629075747.32586-2-chriscool@tuxfamily.org>
In-Reply-To
<20190629075747.32586-1-chriscool@tuxfamily.org>

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>
---
 t/t0016-oidmap.sh | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
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
-- 
2.22.0.464.g81fc6c5d4a.dirty
Previous: Christian Couder
Message 2 of 2 in “test-oidmap: remove 'add' subcommand”
  1. 1/2 test-oidmap: remove 'add' subcommandChristian Couder, Jun 29, 2019
  2. 2/2 t0016: add 'remove' subcommand testChristian Couder, Jun 29, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.