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 67dfd18 commit cb4eec1Copy full SHA for cb4eec1
src/test/fuzz/integer.cpp
@@ -23,6 +23,7 @@
23
#include <streams.h>
24
#include <test/fuzz/FuzzedDataProvider.h>
25
#include <test/fuzz/fuzz.h>
26
+#include <time.h>
27
#include <uint256.h>
28
#include <util/moneystr.h>
29
#include <util/strencodings.h>
@@ -31,6 +32,7 @@
31
32
#include <version.h>
33
34
#include <cassert>
35
+#include <chrono>
36
#include <limits>
37
#include <vector>
38
@@ -124,6 +126,8 @@ void test_one_input(const std::vector<uint8_t>& buffer)
124
126
assert(parsed_money == i64);
125
127
}
128
129
+ const std::chrono::seconds seconds{i64};
130
+ assert(count_seconds(seconds) == i64);
131
132
const arith_uint256 au256 = UintToArith256(u256);
133
assert(ArithToUint256(au256) == u256);
0 commit comments