[vala/wip/issue/327: 27/41] Added with namespace and class tests



commit 7c83ae239cdb3983f5fb7959f9cd3e8fb0906e7e
Author: Nick Schrader <nick schrader mailbox org>
Date:   Thu Apr 2 17:26:34 2020 -0300

    Added with namespace and class tests

 tests/Makefile.am                  | 2 ++
 tests/semantic/with-class.test     | 7 +++++++
 tests/semantic/with-namespace.test | 7 +++++++
 3 files changed, 16 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index a93401b1c..c7a6c47a4 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -930,6 +930,8 @@ TESTS = \
        semantic/unary-unsupported-increment.test \
        semantic/unary-unsupported-minus.test \
        semantic/unary-unsupported-negation.test \
+       semantic/with-class.test \
+       semantic/with-namespace.test \
        semantic/with-no-such-member.test \
        semantic/with-no-such-with-member.test \
        semantic/yield-call-requires-async-context.test \
diff --git a/tests/semantic/with-class.test b/tests/semantic/with-class.test
new file mode 100644
index 000000000..bca006673
--- /dev/null
+++ b/tests/semantic/with-class.test
@@ -0,0 +1,7 @@
+Invalid Code
+
+class Foo { }
+
+void main() {
+    with (Foo) { }
+}
diff --git a/tests/semantic/with-namespace.test b/tests/semantic/with-namespace.test
new file mode 100644
index 000000000..dbbabe114
--- /dev/null
+++ b/tests/semantic/with-namespace.test
@@ -0,0 +1,7 @@
+Invalid Code 
+
+namespace Foo { }
+
+void main() {
+    with (Foo) { }
+}


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