From 0c3f91403eee01d4a1b2d2c520893de3a884a72d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 23 May 2016 10:20:56 +0100 Subject: Fix missing words in properties windows (#874). --- test/util_test.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/util_test.cc') diff --git a/test/util_test.cc b/test/util_test.cc index e296229e1..9dcd05339 100644 --- a/test/util_test.cc +++ b/test/util_test.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2014 Carl Hetherington + Copyright (C) 2012-2016 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,6 +23,7 @@ #include #include "lib/util.h" +#include "lib/raw_convert.h" #include "lib/exceptions.h" using std::string; @@ -85,3 +86,9 @@ BOOST_AUTO_TEST_CASE (seconds_to_approximate_hms_test) BOOST_CHECK_EQUAL (seconds_to_approximate_hms (3600 + 40 * 60), "1h 40m"); BOOST_CHECK_EQUAL (seconds_to_approximate_hms (13 * 3600 + 40 * 60), "14h"); } + +BOOST_AUTO_TEST_CASE (raw_convert_test) +{ + BOOST_CHECK_EQUAL (raw_convert ("foo"), "foo"); + BOOST_CHECK_EQUAL (raw_convert ("foo bar"), "foo bar"); +} -- cgit v1.2.3