We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b07c52 commit 0f0017eCopy full SHA for 0f0017e
1 file changed
test/utils/str.cpp
@@ -37,3 +37,23 @@ TEST(utils_str, string_to_bytes) {
37
38
ASSERT_EQ(passphraseBytes.size(), PassphraseLength);
39
}
40
+
41
+////////////////////////////////////////////////////////////////////////////////
42
+TEST(utils_str, uint_to_string) {
43
+ const uint64_t amount = 100000000ULL;
44
+ const auto target = "100000000";
45
46
+ const auto result = UintToString(amount);
47
48
+ ASSERT_STREQ(result.c_str(), target);
49
+}
50
51
52
+TEST(utils_str, uint_to_string_zero) {
53
+ const uint64_t amount = 0ULL;
54
+ const auto target = "0";
55
56
57
58
59
0 commit comments