Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Byko-Ianko <bykoianko@gmail.com>2016-08-23 14:24:06 +0300
committerGitHub <noreply@github.com>2016-08-23 14:24:06 +0300
commitf0a18472ceb132cb50c50fd67a400c1201b68a5c (patch)
treef88fe3a16da499a375f3b79969d6e35e6fb53cf4 /base/base_tests/newtype_test.cpp
parent5fde326cfb29b3ff6271e552d819c2bf16344454 (diff)
parent1891313b03ff0c375f00ef3da674f2f925a0ae56 (diff)
Merge pull request #4133 from mgsergio/strong-typedefs
Add simple output.
Diffstat (limited to 'base/base_tests/newtype_test.cpp')
-rw-r--r--base/base_tests/newtype_test.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/base/base_tests/newtype_test.cpp b/base/base_tests/newtype_test.cpp
index 0a5741eb11..e912b557d1 100644
--- a/base/base_tests/newtype_test.cpp
+++ b/base/base_tests/newtype_test.cpp
@@ -96,4 +96,19 @@ UNIT_TEST(NewTypeMember_Operations)
a ^= Int(7);
TEST_EQUAL(a, Int(10 ^ 7), ());
}
+
+namespace test_output
+{
+NEWTYPE_SIMPLE_OUTPUT(Int);
+} // namespace test_output
+
+UNIT_TEST(NewType_SimpleOutPut)
+{
+ using namespace test_output;
+ TEST_EQUAL(test_output::DebugPrint(Int(10)), "10", ());
+
+ ostringstream sstr;
+ sstr << Int(20);
+ TEST_EQUAL(sstr.str(), "20", ());
+}
} // namespace