From 5f589c9f2d6efd694e1d35fd19382830fb505a9c Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 20 Jun 2010 13:31:09 +0000 Subject: [PATCH] add some tests: form formatters git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@509 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- src/tests/locale/locale.cpp | 115 +++++++++++++++++++++++++++++++++++++++++++ src/tests/locale/locale.pro | 6 ++ 2 files changed, 121 insertions(+), 0 deletions(-) create mode 100644 src/tests/locale/locale.cpp create mode 100644 src/tests/locale/locale.pro 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" <