Suggestion of a new example to be put on the specs

I am developing a parser in Delphi and I am using the examples as test-cases in an automated test.
This topic is a suggestion of new example/test case for the specs.

Test case: *foo**bar*
Expected output: <p><em>foo**bar</em></p>

My implementation passed all “emphasis” test-cases of the specs, but I found out this case that my code failed caused by a mistake of mine.

This case is tricky and may have different interpretations. This case is ruled by 9th rule, and would be nice to avoid other parsers implementations mistakes.

3 Likes