From: konrad Date: Sun, 20 Jun 2010 13:31:09 +0000 (+0000) Subject: add some tests: form formatters X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=5f589c9f2d6efd694e1d35fd19382830fb505a9c;p=konrad%2Fsmoke.git add some tests: form formatters git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@509 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/src/tests/locale/locale.cpp b/src/tests/locale/locale.cpp new file mode 100644 index 0000000..4ec4182 --- /dev/null +++ b/src/tests/locale/locale.cpp @@ -0,0 +1,115 @@ +// +// C++ Implementation: locale +// +// Description: +// +// +// Author: Konrad Rosenbaum , (C) 2010 +// +// Copyright: See COPYING file that comes with this distribution +// +// + +#include "../../misc/misc.h" +#include + +void printout(MLocalFormat&mf) +{ + qDebug()<<" 10000 as int" << mf.formatNumber(10000); + qDebug()<<" 12345.678 as float" << mf.formatNumber(12345.678); + qDebug()<<" 10000 as money" <