From bff188c2cfc66371eec17deca3a0529864f33663 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Mon, 24 Jun 2019 06:32:38 +0300 Subject: [PATCH] Fully cover `tr_metainfo_sanitize_path_component` --- libtransmission/metainfo-test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libtransmission/metainfo-test.c b/libtransmission/metainfo-test.c index 928075001..64e93de98 100644 --- a/libtransmission/metainfo-test.c +++ b/libtransmission/metainfo-test.c @@ -144,7 +144,9 @@ static int test_sanitize(void) { "foo", 3, "foo", false }, { ".foo", 4, ".foo", false }, { "..foo", 5, "..foo", false }, - { "foo.bar.baz", 11, "foo.bar.baz", false } + { "foo.bar.baz", 11, "foo.bar.baz", false }, + { "null", 4, "null", false }, + { "compass", 7, "compass", false } }; for (size_t i = 0; i < TR_N_ELEMENTS(test_data); ++i)