[vala/wip/issue/327: 34/43] Added with namespace and class tests
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/issue/327: 34/43] Added with namespace and class tests
- Date: Tue, 7 Apr 2020 07:33:28 +0000 (UTC)
commit 11aeddef5b4eecb9a2407b00269b3cae4d3ac4bd
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 d748b6b17..8317468cb 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -911,6 +911,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]