summaryrefslogtreecommitdiff
path: root/test/compose_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/compose_test.cc')
-rw-r--r--test/compose_test.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/compose_test.cc b/test/compose_test.cc
index 9dddb81b..b6347f78 100644
--- a/test/compose_test.cc
+++ b/test/compose_test.cc
@@ -38,11 +38,11 @@
BOOST_AUTO_TEST_CASE (compose_test)
{
- BOOST_REQUIRE_EQUAL (dcp::String::compose("foo %1", 42), "foo 42");
- BOOST_REQUIRE_EQUAL (dcp::String::compose("foo %1 %2", "", 42), "foo 42 ");
- BOOST_REQUIRE_EQUAL (dcp::String::compose("foo %1 %1", 42), "foo 42 42");
- BOOST_REQUIRE_EQUAL (dcp::String::compose("foo %1 %2", 42, 9.6), "foo 42 9.6");
- BOOST_REQUIRE_EQUAL (dcp::String::compose("something %1 foo %2 %3", "balls", 42, 9.6), "something balls foo 42 9.6");
- BOOST_REQUIRE_EQUAL (dcp::String::compose("something %1 foo %2 %3 and then %% %4", "balls", 42, 9.6, boost::filesystem::path("/foo")), "something balls foo 42 9.6 and then % /foo");
+ BOOST_REQUIRE_EQUAL (dcp::compose("foo %1", 42), "foo 42");
+ BOOST_REQUIRE_EQUAL (dcp::compose("foo %1 %2", "", 42), "foo 42 ");
+ BOOST_REQUIRE_EQUAL (dcp::compose("foo %1 %1", 42), "foo 42 42");
+ BOOST_REQUIRE_EQUAL (dcp::compose("foo %1 %2", 42, 9.6), "foo 42 9.6");
+ BOOST_REQUIRE_EQUAL (dcp::compose("something %1 foo %2 %3", "balls", 42, 9.6), "something balls foo 42 9.6");
+ BOOST_REQUIRE_EQUAL (dcp::compose("something %1 foo %2 %3 and then %% %4", "balls", 42, 9.6, boost::filesystem::path("/foo")), "something balls foo 42 9.6 and then % /foo");
}