TODO: Acceptance tests shall use config.h
[agg.git] / tests_usr / long_item_title.sh
blobf861ab3ecae09eae25e429842bc5dbd95b5eb2b9
1 #!/bin/sh
2 # Copyright (C) 2011 Andreas Waidler <arandes@programmers.at>
4 # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
5 # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
7 # 0. You just DO WHAT THE FUCK YOU WANT TO.
9 . ./libtests.sh
11 ORIG=_________________________________________________________________
12 TRNC=_____________________________________________________________...
14 feed_exists() { assert_exists feed; }
15 orig_missing() { assert_missing feed/$ORIG; }
16 item_exists() { assert_exists feed/$TRNC; }
17 item_contents() { assert_value feed/$TRNC title $ORIG; }
19 echo "Running agg on feed with long item title..."
20 agg_run long_item_title.rss
21 t feed_exists
22 t orig_missing
23 t item_exists
24 t item_contents