summaryrefslogtreecommitdiff
path: root/tests/glibmm_ustring_compose
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-02-26 10:46:24 +0100
committerMurray Cumming <murrayc@murrayc.com>2016-02-26 10:46:40 +0100
commit780b77a044ff7e5edda67d59088a33e06596c77b (patch)
tree9086c76e2c2d27559a7b87316e6af02665733685 /tests/glibmm_ustring_compose
parent249bdd539ab05aab98bc417f579524b4e988faef (diff)
downloadglibmm-780b77a044ff7e5edda67d59088a33e06596c77b.tar.gz
Run clang-format on tests.
Diffstat (limited to 'tests/glibmm_ustring_compose')
-rw-r--r--tests/glibmm_ustring_compose/main.cc29
1 files changed, 17 insertions, 12 deletions
diff --git a/tests/glibmm_ustring_compose/main.cc b/tests/glibmm_ustring_compose/main.cc
index 7248c891..5457e8ea 100644
--- a/tests/glibmm_ustring_compose/main.cc
+++ b/tests/glibmm_ustring_compose/main.cc
@@ -2,35 +2,40 @@
#include <iostream>
-//Use this line if you want debug output:
-//std::ostream& ostr = std::cout;
+// Use this line if you want debug output:
+// std::ostream& ostr = std::cout;
-//This seems nicer and more useful than putting an ifdef around the use of ostr:
+// This seems nicer and more useful than putting an ifdef around the use of ostr:
std::stringstream debug;
std::ostream& ostr = debug;
-int main(int, char**)
+int
+main(int, char**)
{
Glib::init();
- //TODO: Check the output?
- const char *constant_string = "constant string";
+ // TODO: Check the output?
+ const char* constant_string = "constant string";
ostr << Glib::ustring::compose("Compose strings: %1", constant_string) << std::endl;
- ostr << Glib::ustring::compose("Compose strings: %1 and %2", constant_string, "string_literal") << std::endl;
+ ostr << Glib::ustring::compose("Compose strings: %1 and %2", constant_string, "string_literal")
+ << std::endl;
ostr << Glib::ustring::compose("Compose strings: %1 and %2", 123, 123.4567) << std::endl;
- ostr << Glib::ustring::compose("Compose strings: %1 and %2", (int)123, (float)123.4567) << std::endl;
+ ostr << Glib::ustring::compose("Compose strings: %1 and %2", (int)123, (float)123.4567)
+ << std::endl;
- ostr << Glib::ustring::compose("Compose strings: %1 and %2", Glib::ustring("foo"), std::string("goo")) << std::endl;
+ ostr << Glib::ustring::compose(
+ "Compose strings: %1 and %2", Glib::ustring("foo"), std::string("goo"))
+ << std::endl;
int i = 1;
ostr << Glib::ustring::compose("Compose strings: %1 and %2", 'f', &i) << std::endl;
- ostr << Glib::ustring::compose("%1 is lower than 0x%2.", 12, Glib::ustring::format(std::hex, 16)) << std::endl;
+ ostr << Glib::ustring::compose("%1 is lower than 0x%2.", 12, Glib::ustring::format(std::hex, 16))
+ << std::endl;
- //TODO: More tests.
+ // TODO: More tests.
return EXIT_SUCCESS;
}
-