Improve lists in user guide for selections
[alexxy/gromacs.git] / src / gromacs / onlinehelp / tests / helpwritercontext.cpp
index 4216fccf0ba70f3746af6348d04bdf8a8b3f4d97..9db5f0e3403159f08174d5320e5b40a99ef86637 100644 (file)
@@ -173,10 +173,31 @@ TEST_F(HelpWriterContextTest, FormatsBulletList)
     const char *const text[] = {
         "Sample list:",
         "",
-        " * first item",
-        " * second item that",
+        "* 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);
+}
+
+TEST_F(HelpWriterContextTest, FormatsEnumeratedList)
+{
+    const char *const text[] = {
+        "Sample list:",
+        "",
+        "1. first item",
+        "2. second item that",
         "   spans multiple lines",
-        " * third item that has a single long line",
+        "3. third item that has a single long line",
+        "",
+        "9.  Item with extra indentation",
+        "10. Double digit item",
         "",
         "Normal paragraph"
     };