Don't match range-title-10 when looking for range-title-1.
authorAdam Sampson <ats@offog.org>
Tue, 9 Jul 2013 22:41:18 +0000 (22:41 +0000)
committerAdam Sampson <ats@offog.org>
Tue, 9 Jul 2013 22:41:18 +0000 (22:41 +0000)
test-rawdog

index 2e87b572ae7922b60b7d2c070713fc3b55acf777..45c196a36c10d132f39655d6203ab00cc6b775ce 100644 (file)
@@ -311,7 +311,7 @@ EOF
        for i in $(seq $from $to); do
                cat >>"$file" <<EOF
     <item>
-      <title>range-title-$i</title>
+      <title>range-title-$i-</title>
       <link>http://example.org/item$i</link>
       <description><![CDATA[<p>range-description-$i</p>]]></description>
     </item>
@@ -328,11 +328,11 @@ make_n () {
 }
 
 output_range () {
-       contains $statedir/output.html $(seq -f "range-title-%.f" $1 $2)
+       contains $statedir/output.html $(seq -f "range-title-%.f-" $1 $2)
 }
 
 not_output_range () {
-       not_contains $statedir/output.html $(seq -f "range-title-%.f" $1 $2)
+       not_contains $statedir/output.html $(seq -f "range-title-%.f-" $1 $2)
 }
 
 output_n () {