[vala/wip/tests: 2/3] tests: Add more "parser" tests to increase coverage



commit 86d4f28df1d62ed690b72690d0a2f12a787d9ab8
Author: Corentin Noël <corentin elementary io>
Date:   Mon Feb 5 01:02:21 2018 +0000

    tests: Add more "parser" tests to increase coverage

 tests/Makefile.am                                  |   49 ++++++++++++++++++++
 tests/parser/assignment.vala                       |    3 +-
 tests/parser/attribute-duplicate.test              |    5 ++
 tests/parser/attribute-wrong-number.test           |    5 ++
 tests/parser/constructor-no-new.test               |    9 ++++
 tests/parser/constructor-no-static-class.test      |    9 ++++
 tests/parser/creation-no-abstract.test             |    9 ++++
 tests/parser/creation-no-override.test             |    9 ++++
 tests/parser/creation-no-virtual.test              |    9 ++++
 tests/parser/delegate-no-new.test                  |    6 ++
 tests/parser/destructor-no-new.test                |    9 ++++
 tests/parser/destructor-no-static-class.test       |    9 ++++
 tests/parser/destructor-wrong-name.test            |    9 ++++
 tests/parser/expect-endbrace.test                  |    7 +++
 tests/parser/expect-error.test                     |    7 +++
 tests/parser/field-no-abstract.test                |    8 +++
 tests/parser/field-no-override.test                |    8 +++
 tests/parser/field-no-static-class.test            |    8 +++
 tests/parser/field-no-virtual.test                 |    8 +++
 tests/parser/foreach-no-type.test                  |    7 +++
 tests/parser/function-syntax-error.test            |    4 ++
 tests/parser/inner-array-size.test                 |    5 ++
 tests/parser/invalid-brace.test                    |    5 ++
 tests/parser/method-no-abstract-override.test      |    9 ++++
 .../method-no-abstract-virtual-override.test       |    9 ++++
 tests/parser/method-no-abstract-virtual.test       |    9 ++++
 tests/parser/method-no-class-abstract.test         |    9 ++++
 tests/parser/method-no-class-override.test         |    9 ++++
 tests/parser/method-no-class-virtual.test          |    9 ++++
 tests/parser/method-no-static-abstract.test        |    9 ++++
 tests/parser/method-no-static-class.test           |    9 ++++
 tests/parser/method-no-static-override.test        |    9 ++++
 tests/parser/method-no-static-virtual.test         |    9 ++++
 tests/parser/method-no-virtual-override.test       |    9 ++++
 tests/parser/namespace-missing-bracket.test        |    6 ++
 tests/parser/property-default-redefined.test       |    8 +++
 tests/parser/property-get-must-have-body.test      |   13 +++++
 tests/parser/property-get-redefined.test           |   15 ++++++
 tests/parser/property-get-set-construct.test       |    8 +++
 tests/parser/property-no-abstract-override.test    |    8 +++
 .../property-no-abstract-virtual-override.test     |    8 +++
 tests/parser/property-no-abstract-virtual.test     |    8 +++
 tests/parser/property-no-static-class.test         |    8 +++
 tests/parser/property-no-virtual-override.test     |    8 +++
 tests/parser/property-set-must-have-body.test      |   13 +++++
 tests/parser/property-set-redefined.test           |   15 ++++++
 tests/parser/signal-no-class.test                  |    8 +++
 tests/parser/signal-no-static.test                 |    8 +++
 tests/parser/statement-outside-root.test           |    8 +++
 tests/parser/tuple.vala                            |    4 ++
 tests/parser/unsupported-property-async.test       |    8 +++
 tests/parser/unsupported-property-throws.test      |    8 +++
 tests/parser/yield-method.test                     |    9 ++++
 53 files changed, 476 insertions(+), 1 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index afdb412..897169e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -334,12 +334,61 @@ TESTS = \
        annotations/description.vala \
        annotations/noaccessormethod.test \
        parser/assignment.vala \
+       parser/attribute-wrong-number.test \
+       parser/attribute-duplicate.test \
+       parser/constructor-no-static-class.test \
+       parser/constructor-no-new.test \
        parser/continue-statement.vala \
+       parser/creation-no-abstract.test \
+       parser/creation-no-override.test \
+       parser/creation-no-virtual.test \
+       parser/delegate-no-new.test \
+       parser/destructor-no-static-class.test \
+       parser/destructor-no-new.test \
+       parser/destructor-wrong-name.test \
        parser/do-statement.vala \
+       parser/expect-endbrace.test \
+       parser/expect-error.test \
+       parser/field-no-abstract.test \
+       parser/field-no-override.test \
+       parser/field-no-static-class.test \
+       parser/field-no-virtual.test \
+       parser/foreach-no-type.test \
+       parser/function-syntax-error.test \
+       parser/inner-array-size.test \
+       parser/invalid-brace.test \
+       parser/method-no-virtual-override.test \
+       parser/method-no-class-abstract.test \
+       parser/method-no-class-override.test \
+       parser/method-no-class-virtual.test \
+       parser/method-no-static-abstract.test \
+       parser/method-no-static-class.test \
+       parser/method-no-static-override.test \
+       parser/method-no-static-virtual.test \
+       parser/method-no-abstract-virtual-override.test \
+       parser/method-no-abstract-virtual.test \
+       parser/method-no-abstract-override.test \
+       parser/namespace-missing-bracket.test \
        parser/preprocessor.vala \
+       parser/property-default-redefined.test \
+       parser/property-get-must-have-body.test \
+       parser/property-get-redefined.test \
+       parser/property-get-set-construct.test \
+       parser/property-no-abstract-virtual.test \
+       parser/property-no-abstract-virtual-override.test \
+       parser/property-no-abstract-override.test \
+       parser/property-no-static-class.test \
+       parser/property-set-must-have-body.test \
+       parser/property-set-redefined.test \
+       parser/signal-no-static.test \
+       parser/signal-no-class.test \
+       parser/statement-outside-root.test \
        parser/switch-statement.vala \
        parser/template.vala \
        parser/tuple.vala \
+       parser/unsupported-property-throws.test \
+       parser/unsupported-property-async.test \
+       parser/yield-method.test \
        semantic/field-accessibility.test \
        semantic/field-compact-static.test \
        semantic/field-external.test \
diff --git a/tests/parser/assignment.vala b/tests/parser/assignment.vala
index ceef7cf..257cd55 100644
--- a/tests/parser/assignment.vala
+++ b/tests/parser/assignment.vala
@@ -6,9 +6,10 @@ void main () {
        i *= 2;
        i /= 2;
        i |= 1;
-       i &= 1; 
+       i &= 1;
        i ^= 1;
        i %= 1;
+       i = ~1;
        i <<= 2;
        i >>= 2;
 }
diff --git a/tests/parser/attribute-duplicate.test b/tests/parser/attribute-duplicate.test
new file mode 100644
index 0000000..bf2ac07
--- /dev/null
+++ b/tests/parser/attribute-duplicate.test
@@ -0,0 +1,5 @@
+Invalid Code
+
+[CCode (cname = "test1"), CCode (cname = "test2")]
+void main () {
+}
diff --git a/tests/parser/attribute-wrong-number.test b/tests/parser/attribute-wrong-number.test
new file mode 100644
index 0000000..9b7eb04
--- /dev/null
+++ b/tests/parser/attribute-wrong-number.test
@@ -0,0 +1,5 @@
+Invalid Code
+
+[Attribute (prop = -a)]
+void main () {
+}
diff --git a/tests/parser/constructor-no-new.test b/tests/parser/constructor-no-new.test
new file mode 100644
index 0000000..107576c
--- /dev/null
+++ b/tests/parser/constructor-no-new.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       new construct {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/constructor-no-static-class.test b/tests/parser/constructor-no-static-class.test
new file mode 100644
index 0000000..2489653
--- /dev/null
+++ b/tests/parser/constructor-no-static-class.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       static class construct {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/creation-no-abstract.test b/tests/parser/creation-no-abstract.test
new file mode 100644
index 0000000..7754063
--- /dev/null
+++ b/tests/parser/creation-no-abstract.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       abstract Test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/creation-no-override.test b/tests/parser/creation-no-override.test
new file mode 100644
index 0000000..b763284
--- /dev/null
+++ b/tests/parser/creation-no-override.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       override Test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/creation-no-virtual.test b/tests/parser/creation-no-virtual.test
new file mode 100644
index 0000000..fa7ee81
--- /dev/null
+++ b/tests/parser/creation-no-virtual.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       virtual Test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/delegate-no-new.test b/tests/parser/delegate-no-new.test
new file mode 100644
index 0000000..32c1bf3
--- /dev/null
+++ b/tests/parser/delegate-no-new.test
@@ -0,0 +1,6 @@
+Invalid Code
+
+public new delegate void MyDelegate ();
+
+void main () {
+}
diff --git a/tests/parser/destructor-no-new.test b/tests/parser/destructor-no-new.test
new file mode 100644
index 0000000..f9857aa
--- /dev/null
+++ b/tests/parser/destructor-no-new.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       new ~Test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/destructor-no-static-class.test b/tests/parser/destructor-no-static-class.test
new file mode 100644
index 0000000..50f601e
--- /dev/null
+++ b/tests/parser/destructor-no-static-class.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       static class ~Test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/destructor-wrong-name.test b/tests/parser/destructor-wrong-name.test
new file mode 100644
index 0000000..aa721e3
--- /dev/null
+++ b/tests/parser/destructor-wrong-name.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       ~TestTypo () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/expect-endbrace.test b/tests/parser/expect-endbrace.test
new file mode 100644
index 0000000..bfea532
--- /dev/null
+++ b/tests/parser/expect-endbrace.test
@@ -0,0 +1,7 @@
+Invalid Code
+
+void main () {
+       if (true) {
+               
+       return;
+}
diff --git a/tests/parser/expect-error.test b/tests/parser/expect-error.test
new file mode 100644
index 0000000..4eaf231
--- /dev/null
+++ b/tests/parser/expect-error.test
@@ -0,0 +1,7 @@
+Invalid Code
+
+public private class Test {
+}
+
+void main () {
+}
diff --git a/tests/parser/field-no-abstract.test b/tests/parser/field-no-abstract.test
new file mode 100644
index 0000000..e5c8f8c
--- /dev/null
+++ b/tests/parser/field-no-abstract.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       abstract int i;
+}
+
+void main () {
+}
diff --git a/tests/parser/field-no-override.test b/tests/parser/field-no-override.test
new file mode 100644
index 0000000..584eb86
--- /dev/null
+++ b/tests/parser/field-no-override.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       override int i;
+}
+
+void main () {
+}
diff --git a/tests/parser/field-no-static-class.test b/tests/parser/field-no-static-class.test
new file mode 100644
index 0000000..3b1faca
--- /dev/null
+++ b/tests/parser/field-no-static-class.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       static class int i;
+}
+
+void main () {
+}
diff --git a/tests/parser/field-no-virtual.test b/tests/parser/field-no-virtual.test
new file mode 100644
index 0000000..64d5fc3
--- /dev/null
+++ b/tests/parser/field-no-virtual.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       virtual int i;
+}
+
+void main () {
+}
diff --git a/tests/parser/foreach-no-type.test b/tests/parser/foreach-no-type.test
new file mode 100644
index 0000000..ed38d3b
--- /dev/null
+++ b/tests/parser/foreach-no-type.test
@@ -0,0 +1,7 @@
+Invalid Code
+
+void main () {
+       int[] test = {};
+       foreach (t in test) {
+       }
+}
diff --git a/tests/parser/function-syntax-error.test b/tests/parser/function-syntax-error.test
new file mode 100644
index 0000000..8bd96e9
--- /dev/null
+++ b/tests/parser/function-syntax-error.test
@@ -0,0 +1,4 @@
+Invalid Code
+
+void int main () {
+}
diff --git a/tests/parser/inner-array-size.test b/tests/parser/inner-array-size.test
new file mode 100644
index 0000000..fc882e1
--- /dev/null
+++ b/tests/parser/inner-array-size.test
@@ -0,0 +1,5 @@
+Invalid Code
+
+void main () {
+       var test = new string[4][];
+}
diff --git a/tests/parser/invalid-brace.test b/tests/parser/invalid-brace.test
new file mode 100644
index 0000000..c84f7e7
--- /dev/null
+++ b/tests/parser/invalid-brace.test
@@ -0,0 +1,5 @@
+Invalid Code
+
+void main () {
+}
+}
diff --git a/tests/parser/method-no-abstract-override.test b/tests/parser/method-no-abstract-override.test
new file mode 100644
index 0000000..e6ef1b1
--- /dev/null
+++ b/tests/parser/method-no-abstract-override.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       abstract override void test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/method-no-abstract-virtual-override.test 
b/tests/parser/method-no-abstract-virtual-override.test
new file mode 100644
index 0000000..31cba59
--- /dev/null
+++ b/tests/parser/method-no-abstract-virtual-override.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       abstract virtual override void test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/method-no-abstract-virtual.test b/tests/parser/method-no-abstract-virtual.test
new file mode 100644
index 0000000..d1c387c
--- /dev/null
+++ b/tests/parser/method-no-abstract-virtual.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       abstract virtual void test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/method-no-class-abstract.test b/tests/parser/method-no-class-abstract.test
new file mode 100644
index 0000000..186286a
--- /dev/null
+++ b/tests/parser/method-no-class-abstract.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       class abstract void test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/method-no-class-override.test b/tests/parser/method-no-class-override.test
new file mode 100644
index 0000000..ff8eebf
--- /dev/null
+++ b/tests/parser/method-no-class-override.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       class override void test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/method-no-class-virtual.test b/tests/parser/method-no-class-virtual.test
new file mode 100644
index 0000000..7449446
--- /dev/null
+++ b/tests/parser/method-no-class-virtual.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       class virtual void test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/method-no-static-abstract.test b/tests/parser/method-no-static-abstract.test
new file mode 100644
index 0000000..02b05d2
--- /dev/null
+++ b/tests/parser/method-no-static-abstract.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       static abstract void test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/method-no-static-class.test b/tests/parser/method-no-static-class.test
new file mode 100644
index 0000000..05eb670
--- /dev/null
+++ b/tests/parser/method-no-static-class.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       static class void test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/method-no-static-override.test b/tests/parser/method-no-static-override.test
new file mode 100644
index 0000000..26a6384
--- /dev/null
+++ b/tests/parser/method-no-static-override.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       static override void test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/method-no-static-virtual.test b/tests/parser/method-no-static-virtual.test
new file mode 100644
index 0000000..7449446
--- /dev/null
+++ b/tests/parser/method-no-static-virtual.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       class virtual void test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/method-no-virtual-override.test b/tests/parser/method-no-virtual-override.test
new file mode 100644
index 0000000..e6ef1b1
--- /dev/null
+++ b/tests/parser/method-no-virtual-override.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Test {
+       abstract override void test () {
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/namespace-missing-bracket.test b/tests/parser/namespace-missing-bracket.test
new file mode 100644
index 0000000..98e8dd3
--- /dev/null
+++ b/tests/parser/namespace-missing-bracket.test
@@ -0,0 +1,6 @@
+Invalid Code
+
+void main () {
+}
+
+namespace Test {
diff --git a/tests/parser/property-default-redefined.test b/tests/parser/property-default-redefined.test
new file mode 100644
index 0000000..2b2a87f
--- /dev/null
+++ b/tests/parser/property-default-redefined.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       public int i { get; set; default=0; default=1; }
+}
+
+void main () {
+}
diff --git a/tests/parser/property-get-must-have-body.test b/tests/parser/property-get-must-have-body.test
new file mode 100644
index 0000000..7eaf37a
--- /dev/null
+++ b/tests/parser/property-get-must-have-body.test
@@ -0,0 +1,13 @@
+Invalid Code
+
+public class Test {
+       public int i {
+               get;
+               set {
+                       return 0;
+               }
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/property-get-redefined.test b/tests/parser/property-get-redefined.test
new file mode 100644
index 0000000..5862dff
--- /dev/null
+++ b/tests/parser/property-get-redefined.test
@@ -0,0 +1,15 @@
+Invalid Code
+
+public class Test {
+       public int i {
+               get;
+               get {
+                       return 0;
+               }
+               set {
+               }
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/property-get-set-construct.test b/tests/parser/property-get-set-construct.test
new file mode 100644
index 0000000..32cf5a1
--- /dev/null
+++ b/tests/parser/property-get-set-construct.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       public int i { get; set; delete; }
+}
+
+void main () {
+}
diff --git a/tests/parser/property-no-abstract-override.test b/tests/parser/property-no-abstract-override.test
new file mode 100644
index 0000000..124a41c
--- /dev/null
+++ b/tests/parser/property-no-abstract-override.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       abstract override int i { get; set; }
+}
+
+void main () {
+}
diff --git a/tests/parser/property-no-abstract-virtual-override.test 
b/tests/parser/property-no-abstract-virtual-override.test
new file mode 100644
index 0000000..0d210a0
--- /dev/null
+++ b/tests/parser/property-no-abstract-virtual-override.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       abstract virtual override int i { get; set; }
+}
+
+void main () {
+}
diff --git a/tests/parser/property-no-abstract-virtual.test b/tests/parser/property-no-abstract-virtual.test
new file mode 100644
index 0000000..ee66a0e
--- /dev/null
+++ b/tests/parser/property-no-abstract-virtual.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       abstract virtual int i { get; set; }
+}
+
+void main () {
+}
diff --git a/tests/parser/property-no-static-class.test b/tests/parser/property-no-static-class.test
new file mode 100644
index 0000000..f5125d6
--- /dev/null
+++ b/tests/parser/property-no-static-class.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       static class int i { get; set; }
+}
+
+void main () {
+}
diff --git a/tests/parser/property-no-virtual-override.test b/tests/parser/property-no-virtual-override.test
new file mode 100644
index 0000000..f534480
--- /dev/null
+++ b/tests/parser/property-no-virtual-override.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       virtual override int i { get; set; }
+}
+
+void main () {
+}
diff --git a/tests/parser/property-set-must-have-body.test b/tests/parser/property-set-must-have-body.test
new file mode 100644
index 0000000..ea31af3
--- /dev/null
+++ b/tests/parser/property-set-must-have-body.test
@@ -0,0 +1,13 @@
+Invalid Code
+
+public class Test {
+       public int i {
+               get {
+                       return 0;
+               }
+               set;
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/property-set-redefined.test b/tests/parser/property-set-redefined.test
new file mode 100644
index 0000000..48f67e6
--- /dev/null
+++ b/tests/parser/property-set-redefined.test
@@ -0,0 +1,15 @@
+Invalid Code
+
+public class Test {
+       public int i {
+               get {
+                       return 0;
+               }
+               set;
+               set {
+               }
+       }
+}
+
+void main () {
+}
diff --git a/tests/parser/signal-no-class.test b/tests/parser/signal-no-class.test
new file mode 100644
index 0000000..72df991
--- /dev/null
+++ b/tests/parser/signal-no-class.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       public class signal void test ();
+}
+
+void main () {
+}
diff --git a/tests/parser/signal-no-static.test b/tests/parser/signal-no-static.test
new file mode 100644
index 0000000..fae0214
--- /dev/null
+++ b/tests/parser/signal-no-static.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       public static signal void test ();
+}
+
+void main () {
+}
diff --git a/tests/parser/statement-outside-root.test b/tests/parser/statement-outside-root.test
new file mode 100644
index 0000000..0cd1c22
--- /dev/null
+++ b/tests/parser/statement-outside-root.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+namespace Test {
+       var i = {};
+}
+
+void main () {
+}
diff --git a/tests/parser/tuple.vala b/tests/parser/tuple.vala
index 1c16942..8ad65b5 100644
--- a/tests/parser/tuple.vala
+++ b/tests/parser/tuple.vala
@@ -11,4 +11,8 @@ void main () {
        (i, j) = BAR;
        assert (i == 42);
        assert (j == 4711);
+
+       var (test, test2) = new int[] { 23, 51 };
+       assert (test == 23);
+       assert (test2 == 51);
 }
diff --git a/tests/parser/unsupported-property-async.test b/tests/parser/unsupported-property-async.test
new file mode 100644
index 0000000..124ab93
--- /dev/null
+++ b/tests/parser/unsupported-property-async.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       public async int i { get; set; }
+}
+
+void main () {
+}
diff --git a/tests/parser/unsupported-property-throws.test b/tests/parser/unsupported-property-throws.test
new file mode 100644
index 0000000..35a8bfe
--- /dev/null
+++ b/tests/parser/unsupported-property-throws.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+public class Test {
+       public int i throws int { get; set; }
+}
+
+void main () {
+}
diff --git a/tests/parser/yield-method.test b/tests/parser/yield-method.test
new file mode 100644
index 0000000..1cf7cdf
--- /dev/null
+++ b/tests/parser/yield-method.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+async void test () {
+       yield "";
+}
+
+void main () {
+       test.begin ();
+}


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