[gnome-code-assistance] [tests/c] Added ParseAll test



commit 501c3047ef96845b3db30413e7a2cb75a568b2d2
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Thu Nov 14 19:13:53 2013 +0100

    [tests/c] Added ParseAll test

 tests/backends/c.json |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)
---
diff --git a/tests/backends/c.json b/tests/backends/c.json
index fae723c..4e75898 100644
--- a/tests/backends/c.json
+++ b/tests/backends/c.json
@@ -18,6 +18,42 @@
           "message": "cannot initialize a variable of type 'char *' with an rvalue of type 'void *'"
         }
       ]
+    },
+    {
+      "parse_all": {
+        "path": "c/all/test.cc",
+        "documents": ["c/all/test.hh"]
+      },
+      "documents": ["c/all/test.cc", "c/all/test.hh"],
+      "diagnostics": {
+        "c/all/test.cc": [
+          {
+            "severity": 4,
+            "locations": [
+              {"start": {"line": 4, "column": 19}}
+            ],
+            "fixits": [
+              {
+                "location": {
+                  "start": {"line": 4, "column": 19}
+                },
+                "replacement": ";"
+              }
+            ],
+            "message": "expected ';' after return statement"
+          }
+        ],
+        "c/all/test.hh": [
+          {
+            "severity": 2,
+            "locations": [
+              {"start": {"line": 3, "column": 1}}
+            ],
+            "fixits": [],
+            "message": "control reaches end of non-void function"
+          }
+        ]
+      }
     }
   ]
 }


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