summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-08-23 18:53:47 +0200
committerlouiz’ <louiz@louiz.org>2018-08-23 18:54:16 +0200
commit4a583c7b7ea6046202a4cb7c0437241c8f597356 (patch)
tree10b41e7e51622c352ccc9ff3d08f6a95b8eeac10 /tests
parentd7bc737751aae7bdc77c68e4d2953aa0d6670724 (diff)
downloadbiboumi-4a583c7b7ea6046202a4cb7c0437241c8f597356.tar.gz
biboumi-4a583c7b7ea6046202a4cb7c0437241c8f597356.tar.bz2
biboumi-4a583c7b7ea6046202a4cb7c0437241c8f597356.tar.xz
biboumi-4a583c7b7ea6046202a4cb7c0437241c8f597356.zip
Trivial move of a variable in a smaller “ifndef” scope
Diffstat (limited to 'tests')
-rw-r--r--tests/jid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/jid.cpp b/tests/jid.cpp
index 480827b..592d6f3 100644
--- a/tests/jid.cpp
+++ b/tests/jid.cpp
@@ -21,8 +21,8 @@ TEST_CASE("jidprep")
{
// Jidprep
const std::string badjid("~zigougou™@EpiK-7D9D1FDE.poez.io/Boujour/coucou/slt™");
- const std::string correctjid = jidprep(badjid);
#ifdef LIBIDN_FOUND
+ const std::string correctjid = jidprep(badjid);
CHECK(correctjid == "~zigougoutm@epik-7d9d1fde.poez.io/Boujour/coucou/sltTM");
// Check that the cache does not break things when we prep the same string
// multiple times