"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/pandoc.t" between
discount-2.2.4.tar.bz2 and discount-2.2.6.tar.bz2

About: Discount is an implementation of the "Markdown" markup language (written in C).

pandoc.t  (discount-2.2.4.tar.bz2):pandoc.t  (discount-2.2.6.tar.bz2)
skipping to change at line 42 skipping to change at line 42
% date</p>' % date</p>'
try 'indented header' \ try 'indented header' \
' % title ' % title
% author(s) % author(s)
% date' \ % date' \
'<p> % title '<p> % title
% author(s) % author(s)
% date</p>' % date</p>'
# verify that empty pandoc header elements are handled properly
check_null() {
try_header "$3"
res=`echo "$2" | ./pandoc_headers $1`
if [ "$res" ]; then
./echo
test $VERBOSE || ./echo "$3"
echo "$res"
else
test $VERBOSE && ./echo " ok"
fi
}
# pandoc headers left empty
EMPTY='%
%
%
stuff'
# pandoc headers with whitespace, but no content
EMPTY1='%
%
%
stuff'
AUTHOR='%
% bofh
%
stuff'
TITLE='%bofh
%
%
stuff'
DATE='%
%
%now
stuff'
check_null -atd "$EMPTY" "empty"
check_null -atd "$EMPTY1" "whitespace"
check_null -td "$AUTHOR" "author field"
check_null -ad "$TITLE" "title field"
check_null -at "$DATE" "date field"
summary $0 summary $0
exit $rc exit $rc
 End of changes. 1 change blocks. 
0 lines changed or deleted 46 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)