diff options
Diffstat (limited to 'src/base/bituniontest.cc')
-rw-r--r-- | src/base/bituniontest.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/base/bituniontest.cc b/src/base/bituniontest.cc index 8781d2d5e..d7ed95bb8 100644 --- a/src/base/bituniontest.cc +++ b/src/base/bituniontest.cc @@ -270,3 +270,17 @@ TEST_F(BitUnionData, Templating) is64 = std::is_same<BitUnionBaseType<Dummy32>, uint64_t>::value; EXPECT_FALSE(is64); } + +TEST_F(BitUnionData, Output) +{ + sixtyFour = 1234567812345678; + std::stringstream ss; + ss << sixtyFour; + EXPECT_EQ(ss.str(), "1234567812345678"); + ss.str(""); + + EmptyEight eight = 65; + ss << eight; + EXPECT_EQ(ss.str(), "65"); + ss.str(""); +} |