summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-01-03 08:03:48 +0100
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-01-09 20:29:55 +0100
commita6c564c0fc9262ae85a6cffd44e4134ed91e610a (patch)
treea5398dbaa239de9cefdf34403467bd6a4917185b
parent6b36bb4f78b7005aae8173c9c2712d7ef5d2c442 (diff)
downloadgobject-introspection-a6c564c0fc9262ae85a6cffd44e4134ed91e610a.tar.gz
tests: add invalid identifier test case
This comment block, as found in the wild via https://bugzilla.gnome.org/show_bug.cgi?id=690850 has a couple of elements to make it an interesting test case: - a colon on the first line - stuff between parens on the first line but it still isn't a valid identifier. Add it here anyway to make sure we don't regress.
-rw-r--r--tests/scanner/annotationparser/gi/syntax_identifier.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/scanner/annotationparser/gi/syntax_identifier.xml b/tests/scanner/annotationparser/gi/syntax_identifier.xml
index 4c1e0b1c..69dcf328 100644
--- a/tests/scanner/annotationparser/gi/syntax_identifier.xml
+++ b/tests/scanner/annotationparser/gi/syntax_identifier.xml
@@ -283,4 +283,22 @@ returns nothing.</description>
</docblock>
</test>
+<test>
+ <!--
+ Invalid identifier
+ -->
+ <commentblock>/**
+ * gnm_cell_set_expr_and_value: Stores (WITHOUT COPYING) the supplied value, and
+ * references the supplied expression and links it into the expression
+ * list. It marks the sheet as dirty. It is intended for use by import
+ * routines or operations that do bulk assignment.
+ *
+ * WARNING : This is an internal routine that does not queue redraws,
+ * does not auto-resize, does not calculate spans, and does
+ * not render the value.
+ *
+ * NOTE : This DOES check for array partitioning.
+ */</commentblock>
+</test>
+
</tests>