We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33af14e commit f0eeee2Copy full SHA for f0eeee2
src/test/transaction_tests.cpp
@@ -1028,4 +1028,12 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
1028
}
1029
1030
1031
+BOOST_AUTO_TEST_CASE(test_TxidFromString)
1032
+{
1033
+ // TxidFromString currently ignores string_view length and reads the whole
1034
+ // string, not the specified substring.
1035
+ BOOST_CHECK_EQUAL(TxidFromString(std::string_view("ABCD1234", 4)).ToString(),
1036
+ "00000000000000000000000000000000000000000000000000000000abcd1234");
1037
+}
1038
+
1039
BOOST_AUTO_TEST_SUITE_END()
0 commit comments