diff options
author | Abseil Team <absl-team@google.com> | 2017-12-13 12:02:15 -0800 |
---|---|---|
committer | Titus Winters <titus@google.com> | 2017-12-14 09:04:37 -0500 |
commit | 720c017e30339fd1786ce4aac68bc8559736e53f (patch) | |
tree | e1ee954f7311f39125b93c91303828e27fc5e4cf /absl/numeric/int128_test.cc | |
parent | 5fe41affbaab5b9ad4876a6295c78f21a86d862d (diff) |
Changes imported from Abseil "staging" branch:
- a42e9b454ca8be7d021789cdb9bcada07d3e2d3e Merge pull request #57. by Derek Mauro <dmauro@google.com>
- b1e03838f059c034a6489501804d516326246042 Move the long ostream tests into a separate source file u... by Alex Strelnikov <strel@google.com>
- 7c56b7dbb05faa7e8653632e00be470331d79cb9 Return reference from absl::InlinedVector::emplace_back(). by Abseil Team <absl-team@google.com>
- 85b070822b62688ff348d9ad9cc9e230a851f617 Treat \u or \U followed by Unicode surrogate character as... by Abseil Team <absl-team@google.com>
GitOrigin-RevId: a42e9b454ca8be7d021789cdb9bcada07d3e2d3e
Change-Id: I7d8fb68ffd7eb4e9e737f21fbed6d56b71985f94
Diffstat (limited to 'absl/numeric/int128_test.cc')
-rw-r--r-- | absl/numeric/int128_test.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/absl/numeric/int128_test.cc b/absl/numeric/int128_test.cc index ce44cd4b..75fd6371 100644 --- a/absl/numeric/int128_test.cc +++ b/absl/numeric/int128_test.cc @@ -17,7 +17,6 @@ #include <algorithm> #include <limits> #include <random> -#include <sstream> #include <type_traits> #include <utility> #include <vector> @@ -427,26 +426,4 @@ TEST(Uint128, ConstexprTest) { EXPECT_EQ(minus_two, absl::MakeUint128(-1, -2)); } -TEST(Uint128, OStream) { - struct StreamCase { - absl::uint128 val; - std::ios_base::fmtflags flags; - std::streamsize width; - char fill; - const char* rep; - }; - - std::vector<StreamCase> cases = { -#include "absl/numeric/int128_test_unsigned_ostream_cases.inc" - }; - for (const StreamCase& test_case : cases) { - std::ostringstream os; - os.flags(test_case.flags); - os.width(test_case.width); - os.fill(test_case.fill); - os << test_case.val; - EXPECT_EQ(test_case.rep, os.str()); - } -} - } // namespace |