From: Adam Sampson Date: Thu, 11 Jul 2013 14:14:07 +0000 (+0000) Subject: Add a function to generate range title lists. X-Git-Tag: v2.15rc2~2 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=1b2c22dbd51d5fc74a291d6e21aa14c6209740d1;p=rawdog%2F.git Add a function to generate range title lists. --- diff --git a/test-rawdog b/test-rawdog index 972bd4a..2212bfe 100644 --- a/test-rawdog +++ b/test-rawdog @@ -338,12 +338,16 @@ make_n () { make_range 1 "$@" } +range () { + seq -f "range-title-%.f-" $1 $2 +} + output_range () { - contains $statedir/output.html $(seq -f "range-title-%.f-" $1 $2) + contains $statedir/output.html $(range $1 $2) } not_output_range () { - not_contains $statedir/output.html $(seq -f "range-title-%.f-" $1 $2) + not_contains $statedir/output.html $(range $1 $2) } output_n () {