--- a/tests/test-releasenotes-parsing.t Wed Mar 07 09:07:34 2018 +1100
+++ b/tests/test-releasenotes-parsing.t Sat Mar 03 23:47:22 2018 +0530
@@ -177,3 +177,26 @@
paragraph: Bullet item 1
bullet point:
paragraph: Bullet item 2
+
+Warn user in case of unexpected block while parsing
+
+ $ hg init relnotes-warn
+ $ cd relnotes-warn
+ $ touch feature1
+ $ hg -q commit -A -l - << EOF
+ > commit 1
+ >
+ > .. feature::
+ >
+ > new feature added.
+ > some words about the feature.
+ > EOF
+
+ $ hg releasenote -r .
+ unexpected block in release notes directive feature
+ New Features
+ ============
+
+ * new feature added. some words about the feature.
+
+ $ cd ..