[vala/0.40] tests: Update field "owned to unowned" test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] tests: Update field "owned to unowned" test to increase coverage
- Date: Mon, 24 Sep 2018 08:44:06 +0000 (UTC)
commit e66cf41464135d1103a403e95ec3e824a2541e35
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Sep 22 08:31:51 2018 +0200
tests: Update field "owned to unowned" test to increase coverage
tests/Makefile.am | 2 +-
.../{field-invalid-assignment.test => field-owned-to-unowned.test} | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e0f8cc304..4372f1ad6 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -510,9 +510,9 @@ TESTS = \
semantic/field-external.test \
semantic/field-incompatible.test \
semantic/field-interface.test \
- semantic/field-invalid-assignment.test \
semantic/field-namespace-owned.test \
semantic/field-non-constant.test \
+ semantic/field-owned-to-unowned.test \
semantic/field-void.test \
semantic/foreach-iterator-args.test \
semantic/foreach-iterator-void.test \
diff --git a/tests/semantic/field-invalid-assignment.test b/tests/semantic/field-owned-to-unowned.test
similarity index 61%
rename from tests/semantic/field-invalid-assignment.test
rename to tests/semantic/field-owned-to-unowned.test
index d9f41f408..8cfaace11 100644
--- a/tests/semantic/field-invalid-assignment.test
+++ b/tests/semantic/field-owned-to-unowned.test
@@ -4,8 +4,7 @@ string get_foo () {
return "foo";
}
-unowned string field;
+unowned string foo = get_foo ();
void main () {
- field = get_foo ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]