[vala/staging: 2/4] test: Add "GLib.Log constants" tests to increase coverage



commit bd5c49969e4d80f6c58b670a6317cd3914e2b358
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Nov 12 14:20:07 2019 +0100

    test: Add "GLib.Log constants" tests to increase coverage

 tests/Makefile.am         | 1 +
 tests/constants/glog.vala | 5 +++++
 2 files changed, 6 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 3a7d6d01e..b9dd5bf38 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -70,6 +70,7 @@ TESTS = \
        basic-types/bug777697.test \
        basic-types/bug787152.vala \
        basic-types/bug788775.vala \
+       constants/glog.vala \
        arrays/cast-silent-invalid.test \
        arrays/class-field-length-cname.vala \
        arrays/expression-bracket.test \
diff --git a/tests/constants/glog.vala b/tests/constants/glog.vala
new file mode 100644
index 000000000..4326578de
--- /dev/null
+++ b/tests/constants/glog.vala
@@ -0,0 +1,5 @@
+void main () {
+       assert (Log.FILE.has_suffix ("glog.vala"));
+       assert (Log.LINE == 3);
+       assert (Log.METHOD == "main");
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]