Skip to content

Commit fa31eeb

Browse files
author
MarcoFalke
committed
test: Tabs to spaces in all tests
Spaces are used in all of the source code except in these two instances
1 parent 36f42e1 commit fa31eeb

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

src/test/bswap_tests.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ BOOST_FIXTURE_TEST_SUITE(bswap_tests, BasicTestingSetup)
1111

1212
BOOST_AUTO_TEST_CASE(bswap_tests)
1313
{
14-
// Sibling in bitcoin/src/qt/test/compattests.cpp
15-
uint16_t u1 = 0x1234;
16-
uint32_t u2 = 0x56789abc;
17-
uint64_t u3 = 0xdef0123456789abc;
18-
uint16_t e1 = 0x3412;
19-
uint32_t e2 = 0xbc9a7856;
20-
uint64_t e3 = 0xbc9a78563412f0de;
21-
BOOST_CHECK(bswap_16(u1) == e1);
22-
BOOST_CHECK(bswap_32(u2) == e2);
23-
BOOST_CHECK(bswap_64(u3) == e3);
14+
// Sibling in bitcoin/src/qt/test/compattests.cpp
15+
uint16_t u1 = 0x1234;
16+
uint32_t u2 = 0x56789abc;
17+
uint64_t u3 = 0xdef0123456789abc;
18+
uint16_t e1 = 0x3412;
19+
uint32_t e2 = 0xbc9a7856;
20+
uint64_t e3 = 0xbc9a78563412f0de;
21+
BOOST_CHECK(bswap_16(u1) == e1);
22+
BOOST_CHECK(bswap_32(u2) == e2);
23+
BOOST_CHECK(bswap_64(u3) == e3);
2424
}
2525

2626
BOOST_AUTO_TEST_SUITE_END()

src/test/transaction_tests.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,9 @@ BOOST_AUTO_TEST_CASE(tx_valid)
122122
std::map<COutPoint, int64_t> mapprevOutValues;
123123
UniValue inputs = test[0].get_array();
124124
bool fValid = true;
125-
for (unsigned int inpIdx = 0; inpIdx < inputs.size(); inpIdx++) {
126-
const UniValue& input = inputs[inpIdx];
127-
if (!input.isArray())
128-
{
125+
for (unsigned int inpIdx = 0; inpIdx < inputs.size(); inpIdx++) {
126+
const UniValue& input = inputs[inpIdx];
127+
if (!input.isArray()) {
129128
fValid = false;
130129
break;
131130
}
@@ -209,10 +208,9 @@ BOOST_AUTO_TEST_CASE(tx_invalid)
209208
std::map<COutPoint, int64_t> mapprevOutValues;
210209
UniValue inputs = test[0].get_array();
211210
bool fValid = true;
212-
for (unsigned int inpIdx = 0; inpIdx < inputs.size(); inpIdx++) {
213-
const UniValue& input = inputs[inpIdx];
214-
if (!input.isArray())
215-
{
211+
for (unsigned int inpIdx = 0; inpIdx < inputs.size(); inpIdx++) {
212+
const UniValue& input = inputs[inpIdx];
213+
if (!input.isArray()) {
216214
fValid = false;
217215
break;
218216
}

0 commit comments

Comments
 (0)