]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/git.t
git: fix numerous bugs in git_quote and git_unquote
[public-inbox.git] / t / git.t
diff --git a/t/git.t b/t/git.t
index 4a45bbaf830d0342b17ad9b53a621d2de279ea39..bc1dea5066f5b944d56b237bbfd09a51f7bf2c34 100644 (file)
--- a/t/git.t
+++ b/t/git.t
@@ -168,5 +168,7 @@ is(git_quote($s = "ElĂ©anor"), '"El\\303\\251anor"', 'quoted octal');
 is(git_quote($s = "hello\"world"), '"hello\"world"', 'quoted dq');
 is(git_quote($s = "hello\\world"), '"hello\\\\world"', 'quoted backslash');
 is(git_quote($s = "hello\nworld"), '"hello\\nworld"', 'quoted LF');
+is(git_quote($s = "hello\x06world"), '"hello\\006world"', 'quoted \\x06');
+is(git_unquote($s = '"hello\\006world"'), "hello\x06world", 'unquoted \\x06');
 
 done_testing();