--- a/tests/test-releasenotes-formatting.t Tue Aug 22 16:16:39 2017 +0200
+++ b/tests/test-releasenotes-formatting.t Sun Aug 13 19:58:45 2017 +0530
@@ -378,3 +378,32 @@
* Adds a new feature.
+ $ cd ..
+
+Testing output for the --check (-c) flag
+
+ $ hg init check-flag
+ $ cd check-flag
+
+ $ touch a
+ $ hg -q commit -A -l - << EOF
+ > .. asf::
+ >
+ > First paragraph under this admonition.
+ > EOF
+
+Suggest similar admonition in place of the invalid one.
+
+ $ hg releasenotes -r . -c
+ Invalid admonition 'asf' present in changeset 4026fe9e1c20
+
+ $ touch b
+ $ hg -q commit -A -l - << EOF
+ > .. fixes::
+ >
+ > First paragraph under this admonition.
+ > EOF
+
+ $ hg releasenotes -r . -c
+ Invalid admonition 'fixes' present in changeset 0e7130d2705c
+ (did you mean fix?)