[vala/staging] tests: Add "assignment" operator parser tests to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] tests: Add "assignment" operator parser tests to increase coverage
- Date: Sun, 7 Jan 2018 20:04:50 +0000 (UTC)
commit 74d9501b4131afc508442cda51365a19caf38a4f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Jan 7 15:27:57 2018 +0100
tests: Add "assignment" operator parser tests to increase coverage
tests/Makefile.am | 1 +
tests/parser/assignment.vala | 14 ++++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 196a61b..4e75436 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -321,6 +321,7 @@ TESTS = \
annotations/deprecated.vala \
annotations/description.vala \
annotations/noaccessormethod.test \
+ parser/assignment.vala \
parser/do-statement.vala \
parser/switch-statement.vala \
parser/template.vala \
diff --git a/tests/parser/assignment.vala b/tests/parser/assignment.vala
new file mode 100644
index 0000000..ceef7cf
--- /dev/null
+++ b/tests/parser/assignment.vala
@@ -0,0 +1,14 @@
+void main () {
+ // operators
+ int i = 1;
+ i += 2;
+ i -= 2;
+ i *= 2;
+ i /= 2;
+ i |= 1;
+ i &= 1;
+ i ^= 1;
+ i %= 1;
+ i <<= 2;
+ i >>= 2;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]