From 42028f563c652ea0cbdd069940b09e58771ea4e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Fri, 30 Aug 2024 21:42:54 +0200 Subject: [PATCH] improved tests for nested emphasis --- tests-markdown.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests-markdown.sh b/tests-markdown.sh index ff56c02..2bbcf5d 100755 --- a/tests-markdown.sh +++ b/tests-markdown.sh @@ -1,6 +1,6 @@ #!/bin/sh -runtimes="gawk bawk goawk" +runtimes="gawk bawk mawk goawk" BR=' ' @@ -54,6 +54,13 @@ assert '***strem***' '

strem

' "strong em" assert '***str**em*' '

strem

' "em strong" assert '_**strem**_' '

strem

' "em strong" +assert '*foo**str**bar**str**qua*' '

foostrbarstrqua

' 'em strong asterisk' +assert '**foo*em*bar*em*qua**' '

fooembaremqua

' 'strong em asterisk' + +assert '_foo__str__bar__str__qua_' '

foo__str__bar__str__qua

' 'em embedded underscore' +assert '__foo_em_bar_em_qua__' '

foo_em_bar_em_qua

' 'strong embedded underscore' +assert '_**str**foo**str**_' '

strfoostr

' 'em strong mixed' + assert '_foo_-> bar' '

foo→ bar

' 'arrow' assert '`_foo_-> bar`' '

_foo_-> bar

' 'arrow' assert ' <- comment' '

<!-- comment --> ← comment

' 'arrow' -- 2.39.2