~ubuntu-branches/ubuntu/wily/bombono-dvd/wily

« back to all changes in this revision

Viewing changes to src/mgui/tests/test_gettext.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-11-04 11:46:25 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101104114625-8xfdhvhpsm51i0nu
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include <mlib/tech.h>
35
35
//#include <mlib/filesystem.h>
36
36
#include <mgui/gettext.h>
37
 
#include <boost/format.hpp>
38
 
 
39
 
BOOST_AUTO_TEST_CASE( TestFormat )
40
 
{
41
 
    // Boost.Format
42
 
    std::string f_str = boost::str(boost::format("writing %2%,  x=%1% : %3%-th try") % "toto" % 40.23 % 50);
43
 
    BOOST_CHECK( strcmp(f_str.c_str(), "writing 40.23,  x=toto : 50-th try") == 0 );
44
 
}
45
37
 
46
38
BOOST_AUTO_TEST_CASE( TestGettext )
47
39
{