diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-07-12 11:46:35 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-07-12 11:47:44 +0200 |
commit | df5f39c630de2f7ba0c7c28e1ba85f6d75bcf6de (patch) | |
tree | 47ad54e269ffff48f7490097565a0fe68b13f7c6 /tests | |
parent | 1eae9216314493408d419b8ef1234f041644991d (diff) | |
download | vala-df5f39c630de2f7ba0c7c28e1ba85f6d75bcf6de.tar.gz |
tests: Add invalid "empty" enum/errordomain tests to increase coverage
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/semantic/enum-empty.test | 7 | ||||
-rw-r--r-- | tests/semantic/errordomain-empty.test | 7 |
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index f7bc2a8f3..3488b443c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -497,6 +497,8 @@ TESTS = \ semantic/constant-void.test \ semantic/delegate-too-few-type-arguments.test \ semantic/delegate-too-many-type-arguments.test \ + semantic/enum-empty.test \ + semantic/errordomain-empty.test \ semantic/field-accessibility.test \ semantic/field-compact-static.test \ semantic/field-external.test \ diff --git a/tests/semantic/enum-empty.test b/tests/semantic/enum-empty.test new file mode 100644 index 000000000..120d0849e --- /dev/null +++ b/tests/semantic/enum-empty.test @@ -0,0 +1,7 @@ +Invalid Code + +enum Foo { +} + +void main () { +} diff --git a/tests/semantic/errordomain-empty.test b/tests/semantic/errordomain-empty.test new file mode 100644 index 000000000..be167a384 --- /dev/null +++ b/tests/semantic/errordomain-empty.test @@ -0,0 +1,7 @@ +Invalid Code + +errordomain Foo { +} + +void main () { +} |