Skip to content

Commit 8587443

Browse files
committed
Fix incorrect test values
1 parent 01ba342 commit 8587443

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/test_decimal32_fast_basis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void test_addition()
212212

213213
// Pre- and post- increment
214214
BOOST_TEST_EQ(mutable_one, one);
215-
BOOST_TEST_EQ(mutable_one++, two);
215+
BOOST_TEST_EQ(mutable_one++, one);
216216
BOOST_TEST_EQ(++mutable_one, three);
217217

218218
// Different orders of magnitude
@@ -262,7 +262,7 @@ void test_subtraction()
262262

263263
// Pre- and post- increment
264264
BOOST_TEST_EQ(mutable_three, three);
265-
BOOST_TEST_EQ(mutable_three--, two);
265+
BOOST_TEST_EQ(mutable_three--, three);
266266
BOOST_TEST_EQ(--mutable_three, one);
267267

268268
// Different orders of magnitude

test/test_decimal64_fast_basis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ void test_addition()
192192

193193
// Pre- and post- increment
194194
BOOST_TEST_EQ(mutable_one, one);
195-
BOOST_TEST_EQ(mutable_one++, two);
195+
BOOST_TEST_EQ(mutable_one++, one);
196196
BOOST_TEST_EQ(++mutable_one, three);
197197

198198
// Different orders of magnitude
@@ -236,7 +236,7 @@ void test_subtraction()
236236

237237
// Pre- and post- increment
238238
BOOST_TEST_EQ(mutable_three, three);
239-
BOOST_TEST_EQ(mutable_three--, two);
239+
BOOST_TEST_EQ(mutable_three--, three);
240240
BOOST_TEST_EQ(--mutable_three, one);
241241

242242
// Different orders of magnitude

0 commit comments

Comments
 (0)