tests: add invalid identifier test case
authorDieter Verfaillie <dieterv@optionexplicit.be>
Thu, 3 Jan 2013 07:03:48 +0000 (08:03 +0100)
committerDieter Verfaillie <dieterv@optionexplicit.be>
Wed, 9 Jan 2013 19:29:55 +0000 (20:29 +0100)
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.

tests/scanner/annotationparser/gi/syntax_identifier.xml

index 4c1e0b1..69dcf32 100644 (file)
@@ -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>