Skip to content

Commit 2650ab1

Browse files
committed
Test names typo.
1 parent fd87497 commit 2650ab1

9 files changed

Lines changed: 253 additions & 253 deletions

File tree

test/error/block_error_t.cpp

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ BOOST_AUTO_TEST_SUITE(block_error_t_tests)
2222

2323
// These test std::error_code equality operator overrides.
2424

25-
BOOST_AUTO_TEST_CASE(block_error_t__code__block_success__false_exected_message)
25+
BOOST_AUTO_TEST_CASE(block_error_t__code__block_success__false_expected_message)
2626
{
2727
constexpr auto value = error::block_success;
2828
const auto ec = code(value);
@@ -33,7 +33,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__block_success__false_exected_message)
3333

3434
// check header
3535

36-
BOOST_AUTO_TEST_CASE(block_error_t__code__invalid_proof_of_work__true_exected_message)
36+
BOOST_AUTO_TEST_CASE(block_error_t__code__invalid_proof_of_work__true_expected_message)
3737
{
3838
constexpr auto value = error::invalid_proof_of_work;
3939
const auto ec = code(value);
@@ -42,7 +42,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__invalid_proof_of_work__true_exected_me
4242
BOOST_REQUIRE_EQUAL(ec.message(), "proof of work invalid");
4343
}
4444

45-
BOOST_AUTO_TEST_CASE(block_error_t__code__futuristic_timestamp__true_exected_message)
45+
BOOST_AUTO_TEST_CASE(block_error_t__code__futuristic_timestamp__true_expected_message)
4646
{
4747
constexpr auto value = error::futuristic_timestamp;
4848
const auto ec = code(value);
@@ -53,7 +53,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__futuristic_timestamp__true_exected_mes
5353

5454
// accept header
5555

56-
BOOST_AUTO_TEST_CASE(block_error_t__code__checkpoint_conflict__true_exected_message)
56+
BOOST_AUTO_TEST_CASE(block_error_t__code__checkpoint_conflict__true_expected_message)
5757
{
5858
constexpr auto value = error::checkpoint_conflict;
5959
const auto ec = code(value);
@@ -62,7 +62,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__checkpoint_conflict__true_exected_mess
6262
BOOST_REQUIRE_EQUAL(ec.message(), "block hash rejected by checkpoint");
6363
}
6464

65-
BOOST_AUTO_TEST_CASE(block_error_t__code__insufficient_block_version__true_exected_message)
65+
BOOST_AUTO_TEST_CASE(block_error_t__code__insufficient_block_version__true_expected_message)
6666
{
6767
constexpr auto value = error::insufficient_block_version;
6868
const auto ec = code(value);
@@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__insufficient_block_version__true_exect
7171
BOOST_REQUIRE_EQUAL(ec.message(), "block version rejected at current height");
7272
}
7373

74-
BOOST_AUTO_TEST_CASE(block_error_t__code__anachronistic_timestamp__true_exected_message)
74+
BOOST_AUTO_TEST_CASE(block_error_t__code__anachronistic_timestamp__true_expected_message)
7575
{
7676
constexpr auto value = error::anachronistic_timestamp;
7777
const auto ec = code(value);
@@ -80,7 +80,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__anachronistic_timestamp__true_exected_
8080
BOOST_REQUIRE_EQUAL(ec.message(), "block timestamp is too early");
8181
}
8282

83-
BOOST_AUTO_TEST_CASE(block_error_t__code__incorrect_proof_of_work__true_exected_message)
83+
BOOST_AUTO_TEST_CASE(block_error_t__code__incorrect_proof_of_work__true_expected_message)
8484
{
8585
constexpr auto value = error::incorrect_proof_of_work;
8686
const auto ec = code(value);
@@ -91,7 +91,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__incorrect_proof_of_work__true_exected_
9191

9292
// confirm header
9393

94-
BOOST_AUTO_TEST_CASE(block_error_t__code__orphan_block__true_exected_message)
94+
BOOST_AUTO_TEST_CASE(block_error_t__code__orphan_block__true_expected_message)
9595
{
9696
constexpr auto value = error::orphan_block;
9797
const auto ec = code(value);
@@ -102,7 +102,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__orphan_block__true_exected_message)
102102

103103
// check block
104104

105-
BOOST_AUTO_TEST_CASE(block_error_t__code__block_size_limit__true_exected_message)
105+
BOOST_AUTO_TEST_CASE(block_error_t__code__block_size_limit__true_expected_message)
106106
{
107107
constexpr auto value = error::block_size_limit;
108108
const auto ec = code(value);
@@ -111,7 +111,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__block_size_limit__true_exected_message
111111
BOOST_REQUIRE_EQUAL(ec.message(), "block size limit exceeded");
112112
}
113113

114-
BOOST_AUTO_TEST_CASE(block_error_t__code__empty_block__true_exected_message)
114+
BOOST_AUTO_TEST_CASE(block_error_t__code__empty_block__true_expected_message)
115115
{
116116
constexpr auto value = error::empty_block;
117117
const auto ec = code(value);
@@ -120,7 +120,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__empty_block__true_exected_message)
120120
BOOST_REQUIRE_EQUAL(ec.message(), "block has no transactions");
121121
}
122122

123-
BOOST_AUTO_TEST_CASE(block_error_t__code__first_not_coinbase__true_exected_message)
123+
BOOST_AUTO_TEST_CASE(block_error_t__code__first_not_coinbase__true_expected_message)
124124
{
125125
constexpr auto value = error::first_not_coinbase;
126126
const auto ec = code(value);
@@ -129,7 +129,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__first_not_coinbase__true_exected_messa
129129
BOOST_REQUIRE_EQUAL(ec.message(), "first transaction not a coinbase");
130130
}
131131

132-
BOOST_AUTO_TEST_CASE(block_error_t__code__extra_coinbases__true_exected_message)
132+
BOOST_AUTO_TEST_CASE(block_error_t__code__extra_coinbases__true_expected_message)
133133
{
134134
constexpr auto value = error::extra_coinbases;
135135
const auto ec = code(value);
@@ -138,7 +138,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__extra_coinbases__true_exected_message)
138138
BOOST_REQUIRE_EQUAL(ec.message(), "more than one coinbase");
139139
}
140140

141-
BOOST_AUTO_TEST_CASE(block_error_t__code__internal_duplicate__true_exected_message)
141+
BOOST_AUTO_TEST_CASE(block_error_t__code__internal_duplicate__true_expected_message)
142142
{
143143
constexpr auto value = error::internal_duplicate;
144144
const auto ec = code(value);
@@ -147,7 +147,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__internal_duplicate__true_exected_messa
147147
BOOST_REQUIRE_EQUAL(ec.message(), "matching transaction hashes in block");
148148
}
149149

150-
BOOST_AUTO_TEST_CASE(block_error_t__code__block_internal_double_spend__true_exected_message)
150+
BOOST_AUTO_TEST_CASE(block_error_t__code__block_internal_double_spend__true_expected_message)
151151
{
152152
constexpr auto value = error::block_internal_double_spend;
153153
const auto ec = code(value);
@@ -156,7 +156,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__block_internal_double_spend__true_exec
156156
BOOST_REQUIRE_EQUAL(ec.message(), "double spend internal to block");
157157
}
158158

159-
BOOST_AUTO_TEST_CASE(block_error_t__code__forward_reference__true_exected_message)
159+
BOOST_AUTO_TEST_CASE(block_error_t__code__forward_reference__true_expected_message)
160160
{
161161
constexpr auto value = error::forward_reference;
162162
const auto ec = code(value);
@@ -165,7 +165,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__forward_reference__true_exected_messag
165165
BOOST_REQUIRE_EQUAL(ec.message(), "transactions out of order");
166166
}
167167

168-
BOOST_AUTO_TEST_CASE(block_error_t__code__invalid_transaction_commitment__true_exected_message)
168+
BOOST_AUTO_TEST_CASE(block_error_t__code__invalid_transaction_commitment__true_expected_message)
169169
{
170170
constexpr auto value = error::invalid_transaction_commitment;
171171
const auto ec = code(value);
@@ -174,7 +174,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__invalid_transaction_commitment__true_e
174174
BOOST_REQUIRE_EQUAL(ec.message(), "invalid transaction commitment");
175175
}
176176

177-
BOOST_AUTO_TEST_CASE(block_error_t__code__block_legacy_sigop_limit__true_exected_message)
177+
BOOST_AUTO_TEST_CASE(block_error_t__code__block_legacy_sigop_limit__true_expected_message)
178178
{
179179
constexpr auto value = error::block_legacy_sigop_limit;
180180
const auto ec = code(value);
@@ -185,7 +185,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__block_legacy_sigop_limit__true_exected
185185

186186
// accept block
187187

188-
BOOST_AUTO_TEST_CASE(block_error_t__code__block_non_final__true_exected_message)
188+
BOOST_AUTO_TEST_CASE(block_error_t__code__block_non_final__true_expected_message)
189189
{
190190
constexpr auto value = error::block_non_final;
191191
const auto ec = code(value);
@@ -194,7 +194,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__block_non_final__true_exected_message)
194194
BOOST_REQUIRE_EQUAL(ec.message(), "block contains a non-final transaction");
195195
}
196196

197-
BOOST_AUTO_TEST_CASE(block_error_t__code__coinbase_height_mismatch__true_exected_message)
197+
BOOST_AUTO_TEST_CASE(block_error_t__code__coinbase_height_mismatch__true_expected_message)
198198
{
199199
constexpr auto value = error::coinbase_height_mismatch;
200200
const auto ec = code(value);
@@ -203,7 +203,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__coinbase_height_mismatch__true_exected
203203
BOOST_REQUIRE_EQUAL(ec.message(), "block height mismatch in coinbase");
204204
}
205205

206-
BOOST_AUTO_TEST_CASE(block_error_t__code__coinbase_value_limit__true_exected_message)
206+
BOOST_AUTO_TEST_CASE(block_error_t__code__coinbase_value_limit__true_expected_message)
207207
{
208208
constexpr auto value = error::coinbase_value_limit;
209209
const auto ec = code(value);
@@ -212,7 +212,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__coinbase_value_limit__true_exected_mes
212212
BOOST_REQUIRE_EQUAL(ec.message(), "coinbase value too high");
213213
}
214214

215-
BOOST_AUTO_TEST_CASE(block_error_t__code__block_sigop_limit__true_exected_message)
215+
BOOST_AUTO_TEST_CASE(block_error_t__code__block_sigop_limit__true_expected_message)
216216
{
217217
constexpr auto value = error::block_sigop_limit;
218218
const auto ec = code(value);
@@ -221,7 +221,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__block_sigop_limit__true_exected_messag
221221
BOOST_REQUIRE_EQUAL(ec.message(), "too many block signature operations");
222222
}
223223

224-
BOOST_AUTO_TEST_CASE(block_error_t__code__invalid_witness_commitment__true_exected_message)
224+
BOOST_AUTO_TEST_CASE(block_error_t__code__invalid_witness_commitment__true_expected_message)
225225
{
226226
constexpr auto value = error::invalid_witness_commitment;
227227
const auto ec = code(value);
@@ -230,7 +230,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__invalid_witness_commitment__true_exect
230230
BOOST_REQUIRE_EQUAL(ec.message(), "invalid witness commitment");
231231
}
232232

233-
BOOST_AUTO_TEST_CASE(block_error_t__code__block_weight_limit__true_exected_message)
233+
BOOST_AUTO_TEST_CASE(block_error_t__code__block_weight_limit__true_expected_message)
234234
{
235235
constexpr auto value = error::block_weight_limit;
236236
const auto ec = code(value);
@@ -239,7 +239,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__block_weight_limit__true_exected_messa
239239
BOOST_REQUIRE_EQUAL(ec.message(), "block weight limit exceeded");
240240
}
241241

242-
BOOST_AUTO_TEST_CASE(block_error_t__code__temporary_hash_limit__true_exected_message)
242+
BOOST_AUTO_TEST_CASE(block_error_t__code__temporary_hash_limit__true_expected_message)
243243
{
244244
constexpr auto value = error::temporary_hash_limit;
245245
const auto ec = code(value);
@@ -248,7 +248,7 @@ BOOST_AUTO_TEST_CASE(block_error_t__code__temporary_hash_limit__true_exected_mes
248248
BOOST_REQUIRE_EQUAL(ec.message(), "block contains too many hashes");
249249
}
250250

251-
BOOST_AUTO_TEST_CASE(block_error_t__code__unspent_coinbase_collision__true_exected_message)
251+
BOOST_AUTO_TEST_CASE(block_error_t__code__unspent_coinbase_collision__true_expected_message)
252252
{
253253
constexpr auto value = error::unspent_coinbase_collision;
254254
const auto ec = code(value);

test/error/error_t.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ BOOST_AUTO_TEST_SUITE(error_t_tests)
2222

2323
// These test std::error_code equality operator overrides.
2424

25-
BOOST_AUTO_TEST_CASE(error_t__code__success__false_exected_message)
25+
BOOST_AUTO_TEST_CASE(error_t__code__success__false_expected_message)
2626
{
2727
constexpr auto value = error::success;
2828
const auto ec = code(value);
@@ -31,7 +31,7 @@ BOOST_AUTO_TEST_CASE(error_t__code__success__false_exected_message)
3131
BOOST_REQUIRE_EQUAL(ec.message(), "success");
3232
}
3333

34-
BOOST_AUTO_TEST_CASE(error_t__code__not_found__true_exected_message)
34+
BOOST_AUTO_TEST_CASE(error_t__code__not_found__true_expected_message)
3535
{
3636
constexpr auto value = error::not_found;
3737
const auto ec = code(value);
@@ -40,7 +40,7 @@ BOOST_AUTO_TEST_CASE(error_t__code__not_found__true_exected_message)
4040
BOOST_REQUIRE_EQUAL(ec.message(), "object does not exist");
4141
}
4242

43-
BOOST_AUTO_TEST_CASE(error_t__code__not_implemented__true_exected_message)
43+
BOOST_AUTO_TEST_CASE(error_t__code__not_implemented__true_expected_message)
4444
{
4545
constexpr auto value = error::not_implemented;
4646
const auto ec = code(value);

0 commit comments

Comments
 (0)