Replace more [BR] with rst bullet lists
[alexxy/gromacs.git] / src / gromacs / onlinehelp / tests / helpwritercontext.cpp
index 184e6e76e2cda16339a24b6e2407bb611864de9f..ed08fb84b070f015025f0627a8d3f2c8e1c91b2e 100644 (file)
@@ -155,4 +155,22 @@ TEST_F(HelpWriterContextTest, FormatsLiteralText)
     testFormatting(text);
 }
 
+TEST_F(HelpWriterContextTest, FormatsBulletList)
+{
+    const char *const text[] = {
+        "Sample list:",
+        "",
+        " * first item",
+        " * second item that",
+        "   spans multiple lines",
+        " * third item that has a single long line",
+        "",
+        "Normal paragraph"
+    };
+    // Wrapping to rst with a fixed line length does not currently work
+    // correctly, but it is not used, either.
+    settings_.setLineLength(15);
+    testFormatting(text);
+}
+
 } // namespace