diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-02-22 10:56:05 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-02-22 10:56:05 +0100 |
commit | ac9a2ae616675a30b079c9eb7c4002cfeb00adde (patch) | |
tree | e447e060a477bedc3d9883c1c7420985d800f85c /tests/errors | |
parent | f8b401d23f71fea94b283ef05fb9c096b521be93 (diff) | |
download | vala-ac9a2ae616675a30b079c9eb7c4002cfeb00adde.tar.gz |
tests: Add invalid "error creation" tests to increase coverage
Diffstat (limited to 'tests/errors')
-rw-r--r-- | tests/errors/error-creation-invalid-type.test | 9 | ||||
-rw-r--r-- | tests/errors/error-creation-invalid.test | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/errors/error-creation-invalid-type.test b/tests/errors/error-creation-invalid-type.test new file mode 100644 index 000000000..c5080b1e8 --- /dev/null +++ b/tests/errors/error-creation-invalid-type.test @@ -0,0 +1,9 @@ +Invalid Code + +errordomain FooError { + FAIL; +} + +void main () { + var e = new FooError.FAIL (42); +} diff --git a/tests/errors/error-creation-invalid.test b/tests/errors/error-creation-invalid.test new file mode 100644 index 000000000..bb21adf9f --- /dev/null +++ b/tests/errors/error-creation-invalid.test @@ -0,0 +1,9 @@ +Invalid Code + +errordomain FooError { + FAIL; +} + +void main () { + var e = new FooError.FAIL (); +} |