mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 09:50:26 +00:00
Fix --test-unit
This commit is contained in:
parent
c4e8db2964
commit
549f4f3674
@ -543,6 +543,9 @@ TEST_SUITE("Project") {
|
||||
std::cout << "Expected: " << StringJoin(expected) << std::endl;
|
||||
std::cout << "Actual: " << StringJoin(result.args) << std::endl;
|
||||
}
|
||||
result.args.erase(std::remove(result.args.begin(), result.args.end(),
|
||||
std::string("-fparse-all-comments")),
|
||||
result.args.end());
|
||||
for (int i = 0; i < std::min(result.args.size(), expected.size()); ++i) {
|
||||
if (result.args[i] != expected[i]) {
|
||||
std::cout << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user