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



commit 5be1db7abf770a581d432dbbf770abf1ae1b420e
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 cb188ea7a..bb1f87d57 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -922,6 +922,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]