Skip to content

Commit 84ee288

Browse files
committed
Attempt to fix odd error in happy path of code submitted with issue 223.
1 parent 39faa9d commit 84ee288

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/github_issues.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,6 @@ void github_issue_223()
271271
BOOST_TEST(v.size() == 1);
272272
BOOST_TEST(v == std::vector<char>({'y'}));
273273

274-
std::cout << "v.size()=" << v.size() << "\n";
275-
for (auto c : v) {
276-
std::cout << std::hex << (int)c << ' ';
277-
}
278-
std::cout << "\n";
279-
280274
// the assert fails since there are two elements in the vector: '\0'
281275
// and 'y'. Seems pretty surprising to me
282276
}
@@ -287,7 +281,7 @@ void github_issue_223()
287281
const auto result = bp::parse("xy", parser, bp::ws);
288282

289283
BOOST_TEST(result->size() == 1);
290-
BOOST_TEST(*result == std::vector<std::optional<char>>({'y'}));
284+
BOOST_TEST(*(*result)[0] == 'y');
291285

292286
// success, the vector has only one 'y' element
293287
}

0 commit comments

Comments
 (0)