[vala/0.40] tests: Add "translated string constant" test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] tests: Add "translated string constant" test to increase coverage
- Date: Sun, 3 Jan 2021 12:46:52 +0000 (UTC)
commit 91e2eaf26b42cbba275c3b1b667bdfec89e12d53
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Nov 14 21:31:03 2020 +0100
tests: Add "translated string constant" test to increase coverage
tests/Makefile.am | 1 +
tests/constants/strings.vala | 5 +++++
2 files changed, 6 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0945c7ed4..378768758 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -71,6 +71,7 @@ TESTS = \
basic-types/bug787152.vala \
basic-types/bug788775.vala \
constants/array-type-invalid.test \
+ constants/strings.vala \
namespace/unique.vala \
arrays/cast-silent-invalid.test \
arrays/class-field-length-cname.vala \
diff --git a/tests/constants/strings.vala b/tests/constants/strings.vala
new file mode 100644
index 000000000..d2f7468df
--- /dev/null
+++ b/tests/constants/strings.vala
@@ -0,0 +1,5 @@
+const string FOO = "string constant";
+const string BAR = _("translated string constant");
+
+void main () {
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]