mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 19:36:18 +01:00
Fix tests for Unicode strings
Based on a patch by Simon McVittie <simon.mcvittie@collabora.co.uk>. Fixes: https://gitlab.gnome.org/GNOME/glib/issues/1212
This commit is contained in:
parent
e1eaea3eea
commit
0bb3cacacb
@ -1,4 +1,4 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
TEXT '
|
TEXT '
|
||||||
'
|
'
|
||||||
ERROR Error on line 2 char 8: Element '|foo' was closed, but the currently open element is 'foo'
|
ERROR Error on line 2 char 8: Element “|foo” was closed, but the currently open element is “foo”
|
||||||
|
@ -4,4 +4,4 @@ ELEMENT 'foo'
|
|||||||
ELEMENT 'bar'
|
ELEMENT 'bar'
|
||||||
TEXT '
|
TEXT '
|
||||||
'
|
'
|
||||||
ERROR Error on line 3 char 7: Element 'foo' was closed, but the currently open element is 'bar'
|
ERROR Error on line 3 char 7: Element “foo” was closed, but the currently open element is “bar”
|
||||||
|
@ -1 +1 @@
|
|||||||
ERROR Error on line 1 char 6: Element 'foo' was closed, no element is currently open
|
ERROR Error on line 1 char 6: Element “foo” was closed, no element is currently open
|
||||||
|
@ -1 +1 @@
|
|||||||
ERROR Error on line 1 char 7: Element 'foo|' was closed, no element is currently open
|
ERROR Error on line 1 char 7: Element “foo|” was closed, no element is currently open
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
TEXT '
|
TEXT '
|
||||||
'
|
'
|
||||||
ERROR Error on line 2 char 3: Document ended unexpectedly just after an open angle bracket '<'
|
ERROR Error on line 2 char 3: Document ended unexpectedly just after an open angle bracket “<”
|
||||||
|
@ -5,4 +5,4 @@ ELEMENT 'foo'
|
|||||||
TEXT '
|
TEXT '
|
||||||
'
|
'
|
||||||
END 'bar'
|
END 'bar'
|
||||||
ERROR Error on line 3 char 8: Document ended unexpectedly with elements still open - 'foo' was the last element opened
|
ERROR Error on line 3 char 8: Document ended unexpectedly with elements still open — “foo” was the last element opened
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1 char 6: Document ended unexpectedly with elements still open - 'foo' was the last element opened
|
ERROR Error on line 1 char 6: Document ended unexpectedly with elements still open — “foo” was the last element opened
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1: Empty entity '&;' seen; valid entities are: & " < > '
|
ERROR Error on line 1: Empty entity “&;” seen; valid entities are: & " < > '
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1: Entity name '|' is not known
|
ERROR Error on line 1: Entity name “|” is not known
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1: Entity name 'am|' is not known
|
ERROR Error on line 1: Entity name “am|” is not known
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1: Entity name 'bar' is not known
|
ERROR Error on line 1: Entity name “bar” is not known
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
ELEMENT 'foobar'
|
ELEMENT 'foobar'
|
||||||
ERROR Error on line 49 char 2: Invalid UTF-8 encoded text in name - not valid '
|
ERROR Error on line 49 char 2: Invalid UTF-8 encoded text in name — not valid “
|
||||||
Παν語
|
Παν語
|
||||||
|
|
||||||
This is a list of ways to say hello in various languages. Its purpose is to illustrate a number of scripts.
|
This is a list of ways to say hello in various languages. Its purpose is to illustrate a number of scripts.
|
||||||
@ -47,4 +47,4 @@ Difference among chinese characters in GB, JIS, KSC, BIG5:
|
|||||||
BIG5 -- 元氣 開發
|
BIG5 -- 元氣 開發
|
||||||
|
|
||||||
|
|
||||||
'
|
”
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &
|
ERROR Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1: Failed to parse '34592348345343453453455645765736575865767', which should have been a digit inside a character reference (ê for example) - perhaps the digit is too large
|
ERROR Error on line 1: Failed to parse “34592348345343453453455645765736575865767”, which should have been a digit inside a character reference (ê for example) — perhaps the digit is too large
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1: Character reference '0' does not encode a permitted character
|
ERROR Error on line 1: Character reference “0” does not encode a permitted character
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1: Failed to parse '', which should have been a digit inside a character reference (ê for example) - perhaps the digit is too large
|
ERROR Error on line 1: Failed to parse “”, which should have been a digit inside a character reference (ê for example) — perhaps the digit is too large
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1: Character reference did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &
|
ERROR Error on line 1: Character reference did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &
|
ERROR Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
TEXT '<27>'
|
TEXT '<27>'
|
||||||
END 'foo'
|
END 'foo'
|
||||||
ERROR Error on line 2 char 1: '^$non-carriage-null-fail|' is not a valid name
|
ERROR Error on line 2 char 1: “^$non-carriage-null-fail|” is not a valid name
|
||||||
|
@ -1 +1 @@
|
|||||||
ERROR Error on line 1 char 2: ' ' is not a valid character following a '<' character; it may not begin an element name
|
ERROR Error on line 1 char 2: “ ” is not a valid character following a “<” character; it may not begin an element name
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
TEXT 'data'
|
TEXT 'data'
|
||||||
ERROR Error on line 1 char 11: ' ' is not a valid character following a '<' character; it may not begin an element name
|
ERROR Error on line 1 char 11: “ ” is not a valid character following a “<” character; it may not begin an element name
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
TEXT 'data'
|
TEXT 'data'
|
||||||
ERROR Error on line 1 char 12: ' ' is not a valid character following the characters '</'; ' ' may not begin an element name
|
ERROR Error on line 1 char 12: “ ” is not a valid character following the characters “</”; “ ” may not begin an element name
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'bla'
|
ELEMENT 'bla'
|
||||||
ERROR Error on line 1: Entity name 'unknownentityname' is not known
|
ERROR Error on line 1: Entity name “unknownentityname” is not known
|
||||||
|
@ -1 +1 @@
|
|||||||
ERROR Error on line 2 char 1: Invalid UTF-8 encoded text in name - not valid 'abcäöü'
|
ERROR Error on line 2 char 1: Invalid UTF-8 encoded text in name — not valid “abcäöüâ€<C3A2>
|
||||||
|
@ -1 +1 @@
|
|||||||
ERROR Error on line 3: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &
|
ERROR Error on line 3: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &
|
||||||
|
@ -1 +1 @@
|
|||||||
ERROR Error on line 1 char 10: Odd character '≈', expected a '=' after attribute name 'bar' of element 'foo'
|
ERROR Error on line 1 char 10: Odd character “≈”, expected a “=” after attribute name “bar” of element “foo”
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1 char 6: Odd character '≻', expected a '>' character to end the empty-element tag 'foo'
|
ERROR Error on line 1 char 6: Odd character “≻”, expected a “>” character to end the empty-element tag “foo”
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
TEXT ''
|
TEXT ''
|
||||||
ERROR Error on line 1 char 12: '≻' is not a valid character following the close element name 'foo'; the allowed character is '>'
|
ERROR Error on line 1 char 12: “≻” is not a valid character following the close element name “foo”; the allowed character is “>”
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 3 char 2: Document ended unexpectedly with elements still open - 'foo' was the last element opened
|
ERROR Error on line 3 char 2: Document ended unexpectedly with elements still open — “foo” was the last element opened
|
||||||
|
@ -1 +1 @@
|
|||||||
ERROR Error on line 1: Failed to parse '', which should have been a digit inside a character reference (ê for example) - perhaps the digit is too large
|
ERROR Error on line 1: Failed to parse “”, which should have been a digit inside a character reference (ê for example) — perhaps the digit is too large
|
||||||
|
@ -1 +1 @@
|
|||||||
ERROR Error on line 2 char 2: Odd character '>', expected a '=' after attribute name 'bar' of element 'fail'
|
ERROR Error on line 2 char 2: Odd character “>”, expected a “=” after attribute name “bar” of element “fail”
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
TEXT ''
|
TEXT ''
|
||||||
ERROR Error on line 2 char 2: Document ended unexpectedly inside the close tag for element 'foo'
|
ERROR Error on line 2 char 2: Document ended unexpectedly inside the close tag for element “foo”
|
||||||
|
@ -1 +1 @@
|
|||||||
ERROR Error on line 2 char 1: '|foo' is not a valid name
|
ERROR Error on line 2 char 1: “|foo” is not a valid name
|
||||||
|
@ -1 +1 @@
|
|||||||
ERROR Error on line 2 char 1: 'foo|' is not a valid name: '|'
|
ERROR Error on line 2 char 1: “foo|” is not a valid name: “|”
|
||||||
|
@ -1 +1 @@
|
|||||||
ERROR Error on line 1 char 15: 'bar}"baz"' is not a valid name: '}'
|
ERROR Error on line 1 char 15: “bar}"baz"” is not a valid name: “}”
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ELEMENT 'foo'
|
ELEMENT 'foo'
|
||||||
ERROR Error on line 1 char 6: Odd character '}', expected a '>' character to end the empty-element tag 'foo'
|
ERROR Error on line 1 char 6: Odd character “}”, expected a “>” character to end the empty-element tag “foo”
|
||||||
|
@ -1 +1 @@
|
|||||||
ERROR Error on line 1 char 10: Odd character '{', expected an open quote mark after the equals sign when giving value for attribute 'bar' of element 'foo'
|
ERROR Error on line 1 char 10: Odd character “{”, expected an open quote mark after the equals sign when giving value for attribute “bar” of element “foo”
|
||||||
|
Loading…
Reference in New Issue
Block a user