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

[PATCH v2 6/7] t/unit-tests: fix typos

From
Andrew Kreimer <algonell@gmail.com>
Date
Oct 10, 2024, 15:11 UTC
Message-ID
<20241010151223.311719-7-algonell@gmail.com>
In-Reply-To
<20241010151223.311719-1-algonell@gmail.com>
Fix typos via codespell.
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
 t/unit-tests/t-reftable-basics.c | 2 +-
 t/unit-tests/t-reftable-merged.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/unit-tests/t-reftable-basics.c b/t/unit-tests/t-reftable-basics.c
index e5556ebf52..a9a9f888a4 100644
--- a/t/unit-tests/t-reftable-basics.c
+++ b/t/unit-tests/t-reftable-basics.c
@@ -54,7 +54,7 @@ int cmd_main(int argc UNUSED, const char *argv[] UNUSED)
 		}
 	}
 
-	if_test ("names_length retuns size of a NULL-terminated string array") {
+	if_test ("names_length returns size of a NULL-terminated string array") {
 		const char *a[] = { "a", "b", NULL };
 		check_int(names_length(a), ==, 2);
 	}
diff --git a/t/unit-tests/t-reftable-merged.c b/t/unit-tests/t-reftable-merged.c
index 19e54bdfb8..109d3b07a7 100644
--- a/t/unit-tests/t-reftable-merged.c
+++ b/t/unit-tests/t-reftable-merged.c
@@ -459,7 +459,7 @@ int cmd_main(int argc UNUSED, const char *argv[] UNUSED)
 	TEST(t_merged_logs(), "merged table with multiple log updates for same ref");
 	TEST(t_merged_refs(), "merged table with multiple updates to same ref");
 	TEST(t_merged_seek_multiple_times(), "merged table can seek multiple times");
-	TEST(t_merged_single_record(), "ref ocurring in only one record can be fetched");
+	TEST(t_merged_single_record(), "ref occurring in only one record can be fetched");
 
 	return test_done();
 }
-- 
2.43.0
Previous: Andrew KreimerNext: Andrew Kreimer
Message 6 of 10 in “Fix typos”
  1. 0/7 Fix typosAndrew Kreimer, Oct 10, 2024
  2. 1/7 compat: fix typosAndrew Kreimer, Oct 10, 2024
  3. 2/7 contrib: fix typosAndrew Kreimer, Oct 10, 2024
  4. 3/7 git-gui: Fix typosAndrew Kreimer, Oct 10, 2024
  5. 4/7 t: fix typosAndrew Kreimer, Oct 10, 2024
  6. 6/7 t/unit-tests: fix typosAndrew Kreimer, Oct 10, 2024
  7. 5/7 t/perf: fix typosAndrew Kreimer, Oct 10, 2024
  8. 7/7 t/helper: fix a typoAndrew Kreimer, Oct 10, 2024
  9. Patrick SteinhardtOct 14, 2024
  10. Taylor BlauOct 15, 2024

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.