aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/wipeable_string.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-23 13:47:30 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-23 14:38:31 +0000
commit92d1da28efcd750c5dc07e20de046375bfbe595e (patch)
tree3e4c0acc55e754fe10391a0efa792b4c9fe292d8 /tests/unit_tests/wipeable_string.cpp
parentMerge pull request #4416 (diff)
downloadmonero-92d1da28efcd750c5dc07e20de046375bfbe595e.tar.xz
unit_tests: fix build with GCC 5.4.0 on ubuntu
Diffstat (limited to '')
-rw-r--r--tests/unit_tests/wipeable_string.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit_tests/wipeable_string.cpp b/tests/unit_tests/wipeable_string.cpp
index 65718fd45..44e050c5c 100644
--- a/tests/unit_tests/wipeable_string.cpp
+++ b/tests/unit_tests/wipeable_string.cpp
@@ -194,13 +194,13 @@ TEST(wipeable_string, parse_hexstr)
ASSERT_EQ(boost::none, epee::wipeable_string("0").parse_hexstr());
ASSERT_EQ(boost::none, epee::wipeable_string("000").parse_hexstr());
- ASSERT_TRUE((s = epee::wipeable_string("").parse_hexstr()));
+ ASSERT_TRUE((s = epee::wipeable_string("").parse_hexstr()) != boost::none);
ASSERT_EQ(*s, "");
- ASSERT_TRUE((s = epee::wipeable_string("00").parse_hexstr()));
+ ASSERT_TRUE((s = epee::wipeable_string("00").parse_hexstr()) != boost::none);
ASSERT_EQ(*s, epee::wipeable_string("", 1));
- ASSERT_TRUE((s = epee::wipeable_string("41").parse_hexstr()));
+ ASSERT_TRUE((s = epee::wipeable_string("41").parse_hexstr()) != boost::none);
ASSERT_EQ(*s, epee::wipeable_string("A"));
- ASSERT_TRUE((s = epee::wipeable_string("414243").parse_hexstr()));
+ ASSERT_TRUE((s = epee::wipeable_string("414243").parse_hexstr()) != boost::none);
ASSERT_EQ(*s, epee::wipeable_string("ABC"));
}