aboutsummaryrefslogtreecommitdiff
path: root/src/test/bech32_tests.cpp
diff options
context:
space:
mode:
authorSamuel Dobson <dobsonsa68@gmail.com>2021-11-23 12:17:34 +1300
committerSamuel Dobson <dobsonsa68@gmail.com>2021-11-23 15:48:59 +1300
commitc8b9a224e70f70ccc638b2c4200a505cdf024efd (patch)
tree158d0c3d3b9342ca4e50a1cb9f95f3bfe20cd440 /src/test/bech32_tests.cpp
parent92f0cafdca11a9463b6f04229c1c47805c97c1b5 (diff)
downloadbitcoin-c8b9a224e70f70ccc638b2c4200a505cdf024efd.tar.xz
Report encoding type in bech32 error message
Diffstat (limited to 'src/test/bech32_tests.cpp')
-rw-r--r--src/test/bech32_tests.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/bech32_tests.cpp b/src/test/bech32_tests.cpp
index 7601ead5b8..5d851a9735 100644
--- a/src/test/bech32_tests.cpp
+++ b/src/test/bech32_tests.cpp
@@ -87,8 +87,8 @@ BOOST_AUTO_TEST_CASE(bech32_testvectors_invalid)
{"Invalid separator position", {0}},
{"Invalid character or mixed case", {3, 4, 5, 7}},
{"Invalid character or mixed case", {3}},
- {"Invalid checksum", {11}},
- {"Invalid checksum", {9, 16}},
+ {"Invalid Bech32 checksum", {11}},
+ {"Invalid Bech32 checksum", {9, 16}},
};
static_assert(std::size(CASES) == std::size(ERRORS), "Bech32 CASES and ERRORS should have the same length");
@@ -140,8 +140,8 @@ BOOST_AUTO_TEST_CASE(bech32m_testvectors_invalid)
{"Invalid checksum", {}},
{"Invalid separator position", {0}},
{"Invalid separator position", {0}},
- {"Invalid checksum", {21}},
- {"Invalid checksum", {13, 32}},
+ {"Invalid Bech32m checksum", {21}},
+ {"Invalid Bech32m checksum", {13, 32}},
};
static_assert(std::size(CASES) == std::size(ERRORS), "Bech32m CASES and ERRORS should have the same length");