mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
Add a test for multiple =tags=
This commit is contained in:
+19
@@ -47,6 +47,25 @@ if ./markdown -V | grep DL_TAG >/dev/null; then
|
||||
rc=1
|
||||
fi
|
||||
|
||||
echo -n ' one item with two =tags= ......... '
|
||||
|
||||
SRC="
|
||||
=this=
|
||||
=is=
|
||||
A test, eh?"
|
||||
|
||||
RES=`echo "$SRC" | ./markdown`
|
||||
|
||||
count1=`echo "$RES" | grep -i '<dt>' | wc -l`
|
||||
count2=`echo "$RES" | grep -i '<dd>' | wc -l`
|
||||
|
||||
if [ \( "${count1:-0}" -eq 2 \) -a \( "${count2:-0}" -eq 1 \) ]; then
|
||||
echo "ok"
|
||||
else
|
||||
echo "FAILED"
|
||||
rc=1
|
||||
fi
|
||||
|
||||
else
|
||||
echo -n ' =tag= does nothing ............... '
|
||||
|
||||
|
||||
Reference in New Issue
Block a user