[pango/markup-parse-fixes: 5/5] markup tests: Add tests for parsing accels




commit 2f0d960e700702ca04a7658902b53a4a99eb53d2
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Mar 2 21:00:57 2021 -0500

    markup tests: Add tests for parsing accels
    
    Add tests that test some of the corner cases handled
    in the previous commit.

 tests/markups/valid-13.expected | 21 +++++++++++++++++++++
 tests/markups/valid-13.markup   |  1 +
 tests/markups/valid-14.expected | 24 ++++++++++++++++++++++++
 tests/markups/valid-14.markup   |  1 +
 tests/markups/valid-15.expected | 10 ++++++++++
 tests/markups/valid-15.markup   |  0
 6 files changed, 57 insertions(+)
---
diff --git a/tests/markups/valid-13.expected b/tests/markups/valid-13.expected
new file mode 100644
index 00000000..c63a71c4
--- /dev/null
+++ b/tests/markups/valid-13.expected
@@ -0,0 +1,21 @@
+abc def
+
+
+---
+
+range 0 4
+range 4 5
+[4,5]underline=3
+range 5 2147483647
+
+
+---
+
+[0:4] (null) Normal
+[4:5] (null) Normal
+[5:2147483647] (null) Normal
+
+
+---
+
+d
\ No newline at end of file
diff --git a/tests/markups/valid-13.markup b/tests/markups/valid-13.markup
new file mode 100644
index 00000000..45ccaefb
--- /dev/null
+++ b/tests/markups/valid-13.markup
@@ -0,0 +1 @@
+<markup>abc _def</markup>
diff --git a/tests/markups/valid-14.expected b/tests/markups/valid-14.expected
new file mode 100644
index 00000000..e4e1c5ab
--- /dev/null
+++ b/tests/markups/valid-14.expected
@@ -0,0 +1,24 @@
+abc def
+
+
+---
+
+range 0 1
+[0,1]underline=3
+range 1 4
+range 4 5
+[4,5]underline=3
+range 5 2147483647
+
+
+---
+
+[0:1] (null) Normal
+[1:4] (null) Normal
+[4:5] (null) Normal
+[5:2147483647] (null) Normal
+
+
+---
+
+a
\ No newline at end of file
diff --git a/tests/markups/valid-14.markup b/tests/markups/valid-14.markup
new file mode 100644
index 00000000..52466786
--- /dev/null
+++ b/tests/markups/valid-14.markup
@@ -0,0 +1 @@
+<markup>_abc _def __x_</markup>
diff --git a/tests/markups/valid-15.expected b/tests/markups/valid-15.expected
new file mode 100644
index 00000000..77032f87
--- /dev/null
+++ b/tests/markups/valid-15.expected
@@ -0,0 +1,10 @@
+
+
+---
+
+range 0 2147483647
+
+
+---
+
+[0:2147483647] (null) Normal
diff --git a/tests/markups/valid-15.markup b/tests/markups/valid-15.markup
new file mode 100644
index 00000000..e69de29b


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]