Browse Source
New tests doc-before-include.json and doc-before-pragma.json show we fail to reject a misplaced expression comment. New test doc-no-symbol.json shows a bad error message. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1489582656-31133-31-git-send-email-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>pull/48/head
13 changed files with 38 additions and 0 deletions
@ -0,0 +1 @@ |
|||
0 |
|||
@ -0,0 +1,8 @@ |
|||
# Doc comment separated from defining expression by non-defining expression |
|||
# BUG: not rejected |
|||
|
|||
## |
|||
# @foo: |
|||
## |
|||
{ 'include': 'empty.json' } |
|||
{ 'struct': 'foo', 'data': {} } |
|||
@ -0,0 +1,4 @@ |
|||
enum QType ['none', 'qnull', 'qint', 'qstring', 'qdict', 'qlist', 'qfloat', 'qbool'] |
|||
prefix QTYPE |
|||
object foo |
|||
object q_empty |
|||
@ -0,0 +1 @@ |
|||
0 |
|||
@ -0,0 +1,8 @@ |
|||
# Doc comment separated from defining expression by non-defining expression |
|||
# BUG: not rejected |
|||
|
|||
## |
|||
# @foo: |
|||
## |
|||
{ 'pragma': {} } |
|||
{ 'struct': 'foo', 'data': {} } |
|||
@ -0,0 +1,4 @@ |
|||
enum QType ['none', 'qnull', 'qint', 'qstring', 'qdict', 'qlist', 'qfloat', 'qbool'] |
|||
prefix QTYPE |
|||
object foo |
|||
object q_empty |
|||
@ -0,0 +1 @@ |
|||
tests/qapi-schema/doc-no-symbol.json:4: Definition of 'foo' follows documentation for 'None' |
|||
@ -0,0 +1 @@ |
|||
1 |
|||
@ -0,0 +1,7 @@ |
|||
# Documentation for expression lacks symbol |
|||
# BUG: Error message claims it has symbol 'None' |
|||
|
|||
## |
|||
# foo: |
|||
## |
|||
{ 'command': 'foo', 'data': {'a': 'int'} } |
|||
Loading…
Reference in new issue