Skip to content

Commit 8a6512d

Browse files
authored
Remove int256 operator<< test for showbase with 0 (#22)
Upsteam libc++ is now also showing the octal `0` and hex `0x` prefixes with zero, see llvm/llvm-project#120859 These tests were failing with upstream libc++. The previous three lines test this enough; just remove the tests that now have inconsistent output across C++ standard libraries.
1 parent b71ee1e commit 8a6512d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

shell_encryption/int256_test.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,6 @@ TEST(Int256, OStream) {
540540
{uint256(1), std::ios::dec | std::ios::showbase, 0, '_', "1"},
541541
{uint256(1), std::ios::oct | std::ios::showbase, 0, '_', "01"},
542542
{uint256(1), std::ios::hex | std::ios::showbase, 0, '_', "0x1"},
543-
// showbase does nothing on zero
544-
{uint256(0), std::ios::dec | std::ios::showbase, 0, '_', "0"},
545-
{uint256(0), std::ios::oct | std::ios::showbase, 0, '_', "0"},
546-
{uint256(0), std::ios::hex | std::ios::showbase, 0, '_', "0"},
547543
// showpos does nothing on unsigned types
548544
{uint256(1), std::ios::dec | std::ios::showpos, 0, '_', "1"},
549545
// padding

0 commit comments

Comments
 (0)