diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-20 09:36:14 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-20 09:36:14 +0000 |
| commit | 694fb307aa7e582a55bce7e995bde3a4614b3b4f (patch) | |
| tree | 42bf3e703ebd706c9ebdd62bca59396f2d67a790 /test/StringFormatTest.cc | |
| parent | 580098eb4929a3bdbf424af18da361259ef2efe5 (diff) | |
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Replaced StringFormat with fmt
Diffstat (limited to 'test/StringFormatTest.cc')
| -rw-r--r-- | test/StringFormatTest.cc | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/StringFormatTest.cc b/test/StringFormatTest.cc deleted file mode 100644 index 528d00b2..00000000 --- a/test/StringFormatTest.cc +++ /dev/null @@ -1,35 +0,0 @@ -#include "StringFormat.h" -#include "Exception.h" -#include "util.h" -#include <iostream> -#include <cppunit/extensions/HelperMacros.h> - -namespace aria2 { - -class StringFormatTest:public CppUnit::TestFixture { - - CPPUNIT_TEST_SUITE(StringFormatTest); - CPPUNIT_TEST(testStr); - CPPUNIT_TEST_SUITE_END(); -public: - void setUp() {} - - void tearDown() {} - - void testStr(); -}; - - -CPPUNIT_TEST_SUITE_REGISTRATION(StringFormatTest); - -void StringFormatTest::testStr() -{ - int major = 1; - int minor = 0; - int release = 7; - StringFormat fmt("aria2-%d.%d.%d-%s", major, minor, release, "beta"); - - CPPUNIT_ASSERT_EQUAL(std::string("aria2-1.0.7-beta"), fmt.str()); -} - -} // namespace aria2 |
