MCPcopy
hub / github.com/marktext/marktext / formatFailureMessage

Function formatFailureMessage

packages/muya/test/spec/runner.ts:156–170  ·  view source on GitHub ↗
(
    example: ISpecExample,
    result: IRunResult,
)

Source from the content-addressed store, hash-verified

154 * side, with the markdown source as context.
155 */
156export function formatFailureMessage(
157 example: ISpecExample,
158 result: IRunResult,
159): string {
160 return [
161 '',
162 `--- markdown (${example.section} #${example.number}) ---`,
163 JSON.stringify(example.markdown),
164 '--- expected (normalised) ---',
165 result.normalizedExpected,
166 '--- actual (normalised) ---',
167 result.normalizedActual,
168 '',
169 ].join('\n');
170}

Callers 2

commonmark.spec.tsFile · 0.90
gfm.spec.tsFile · 0.90

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected