diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-28 17:48:55 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-12-06 18:25:16 +0100 |
commit | 34dd7196b23c78ef9d480118f4b77a85067d3b7d (patch) | |
tree | 4aa407b97855d916ce5c1bfebf2dc18ab5c99a8f /tests/resolver | |
parent | a1a8b2be2060e2425558bcf227e58e260a9484b5 (diff) | |
download | vala-34dd7196b23c78ef9d480118f4b77a85067d3b7d.tar.gz |
tests: Add "subtype cycle" tests to increase coverage
Diffstat (limited to 'tests/resolver')
-rw-r--r-- | tests/resolver/class-base-cycle.test | 10 | ||||
-rw-r--r-- | tests/resolver/interface-prerequisite-cycle.test | 10 | ||||
-rw-r--r-- | tests/resolver/struct-base-cycle.test | 10 |
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/resolver/class-base-cycle.test b/tests/resolver/class-base-cycle.test new file mode 100644 index 000000000..5951253fc --- /dev/null +++ b/tests/resolver/class-base-cycle.test @@ -0,0 +1,10 @@ +Invalid Code + +class Bar : Foo { +} + +class Foo : Bar { +} + +void main () { +} diff --git a/tests/resolver/interface-prerequisite-cycle.test b/tests/resolver/interface-prerequisite-cycle.test new file mode 100644 index 000000000..585c7db5c --- /dev/null +++ b/tests/resolver/interface-prerequisite-cycle.test @@ -0,0 +1,10 @@ +Invalid Code + +interface IBar : IFoo { +} + +interface IFoo : IBar { +} + +void main () { +} diff --git a/tests/resolver/struct-base-cycle.test b/tests/resolver/struct-base-cycle.test new file mode 100644 index 000000000..111c7d89f --- /dev/null +++ b/tests/resolver/struct-base-cycle.test @@ -0,0 +1,10 @@ +Invalid Code + +struct Bar : Foo { +} + +struct Foo : Bar { +} + +void main () { +} |