[PATCH] D72954: [clang-doc] Improving Markdown Output
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 7 19:49:34 PST 2020
phosek added a comment.
This is failing on Windows:
../../clang-tools-extra/unittests/clang-doc/MDGeneratorTest.cpp(77): error: Expected: Expected
Which is: "# namespace Namespace\n\n\n\n## Namespaces\n\n* [ChildNamespace](../ChildNamespace/index.md)\n\n\n## Records\n\n* [ChildStruct](../ChildStruct.md)\n\n\n## Functions\n\n### OneFunction\n\n* OneFunction()*\n\n\n\n## Enums\n\n| enum OneEnum |\n\n--\n\n\n\n\n\n"
To be equal to: Actual.str()
Which is: "# namespace Namespace\n\n\n\n## Namespaces\n\n* [ChildNamespace](..\\ChildNamespace\\index.md)\n\n\n## Records\n\n* [ChildStruct](..\\ChildStruct.md)\n\n\n## Functions\n\n### OneFunction\n\n* OneFunction()*\n\n\n\n## Enums\n\n| enum OneEnum |\n\n--\n\n\n\n\n\n"
With diff:
@@ -5,5 +5,5 @@
## Namespaces
-* [ChildNamespace](../ChildNamespace/index.md)
+* [ChildNamespace](..\\ChildNamespace\\index.md)
@@ -10,5 +10,5 @@
## Records
-* [ChildStruct](../ChildStruct.md)
+* [ChildStruct](..\\ChildStruct.md)
[ FAILED ] MDGeneratorTest.emitNamespaceMD (1 ms)
[----------] 1 test from MDGeneratorTest (1 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (1 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] MDGeneratorTest.emitNamespaceMD
1 FAILED TEST
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72954/new/
https://reviews.llvm.org/D72954
More information about the cfe-commits
mailing list