Bitcoin Core
28.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
src
wallet
test
rpc_util_tests.cpp
Go to the documentation of this file.
1
// Copyright (c) 2022 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#include <
wallet/rpc/util.h
>
6
7
#include <boost/test/unit_test.hpp>
8
9
namespace
wallet
{
10
11
BOOST_AUTO_TEST_SUITE
(wallet_util_tests)
12
13
BOOST_AUTO_TEST_CASE
(util_ParseISO8601DateTime)
14
{
15
BOOST_CHECK_EQUAL
(
ParseISO8601DateTime
(
"1970-01-01T00:00:00Z"
), 0);
16
BOOST_CHECK_EQUAL
(
ParseISO8601DateTime
(
"1960-01-01T00:00:00Z"
), 0);
17
BOOST_CHECK_EQUAL
(
ParseISO8601DateTime
(
"2000-01-01T00:00:01Z"
), 946684801);
18
BOOST_CHECK_EQUAL
(
ParseISO8601DateTime
(
"2011-09-30T23:36:17Z"
), 1317425777);
19
BOOST_CHECK_EQUAL
(
ParseISO8601DateTime
(
"2100-12-31T23:59:59Z"
), 4133980799);
20
}
21
22
BOOST_AUTO_TEST_SUITE_END
()
23
24
}
// namespace wallet
BOOST_AUTO_TEST_SUITE
BOOST_AUTO_TEST_SUITE(cuckoocache_tests)
Test Suite for CuckooCache.
BOOST_AUTO_TEST_SUITE_END
BOOST_AUTO_TEST_SUITE_END()
wallet
Definition
wallet_balance.cpp:18
wallet::ParseISO8601DateTime
int64_t ParseISO8601DateTime(const std::string &str)
Definition
util.cpp:23
wallet::BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(bnb_search_test)
Definition
coinselector_tests.cpp:191
BOOST_CHECK_EQUAL
#define BOOST_CHECK_EQUAL(v1, v2)
Definition
object.cpp:18
util.h
Generated on Thu Oct 3 2024 09:20:15 for Bitcoin Core by
1.12.0