summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2018-12-28 22:32:45 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2018-12-28 22:32:45 (EST)
commit62a6fcf474376024094664db30b075c4a9d71161 (patch)
tree934a816e501450bec285a69355dfa69e2e73701c /tests
parent0e900ee44958b67c64a4e38a98601bf3d7a378a4 (diff)
tests/ob_parse_changelog.sh: Verify premature end to parsing
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ob_parse_changelog.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/ob_parse_changelog.sh b/tests/ob_parse_changelog.sh
index 7d820b4..8c29042 100755
--- a/tests/ob_parse_changelog.sh
+++ b/tests/ob_parse_changelog.sh
@@ -45,7 +45,7 @@ foo (1) trunk
-- "J. Random Hacker" <jrandom@example.com> Thu, 01 Jan 1970 00:00:00 +0000
'
-plan_ 18
+plan_ 19
entry=0
@@ -121,6 +121,11 @@ entry_3()
return 1
}
+entry_4()
+{
+ : This should not be reached.
+}
+
entry_cb()
{
entry=$((${entry} + 1))
@@ -130,3 +135,5 @@ entry_cb()
ob_parse_changelog - entry_cb <<-EOF
${CHANGELOG}
EOF
+
+is 'number of parsed entries' "${entry}" 3