about summary refs log tree commit diff stats
path: root/tests/unittests
diff options
context:
space:
mode:
authorDaniel Santos <dacs.git@brilhante.top>2023-04-02 11:27:10 +0100
committerDaniel Santos <dacs.git@brilhante.top>2023-04-03 13:25:25 +0100
commitc7f05c9ebf69921cab8ff6f902938982c517d1b9 (patch)
tree539900206b450ff5b8369fd1ded11979fb88d6a3 /tests/unittests
parentf2c83fa8ceea29e295509c8b964f1e9ccda2f0e4 (diff)
downloadprofani-tty-c7f05c9ebf69921cab8ff6f902938982c517d1b9.tar.gz
Fix typos and update codespell configuration
 * Fix typos.
 * Add words that are not typos to codespell's ignore words list and
 ignore regex.
 * Make codespell ignore URIs.
 * Make `make doublecheck` throw no error.

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/test_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittests/test_parser.c b/tests/unittests/test_parser.c
index 96143294..3d0d3fc6 100644
--- a/tests/unittests/test_parser.c
+++ b/tests/unittests/test_parser.c
@@ -274,7 +274,7 @@ parse_cmd_with_many_quoted_and_many_spaces(void** state)
 void
 parse_cmd_freetext_with_quoted(void** state)
 {
-    char* inp = "/cmd \"arg1\" arg2 hello there whats up";
+    char* inp = "/cmd \"arg1\" arg2 hello there what's up";
     gboolean result = FALSE;
     gchar** args = parse_args_with_freetext(inp, 3, 3, &result);
 
@@ -282,7 +282,7 @@ parse_cmd_freetext_with_quoted(void** state)
     assert_int_equal(3, g_strv_length(args));
     assert_string_equal("arg1", args[0]);
     assert_string_equal("arg2", args[1]);
-    assert_string_equal("hello there whats up", args[2]);
+    assert_string_equal("hello there what's up", args[2]);
     g_strfreev(args);
 }