diff options
author | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2010-03-11 16:07:37 +0000 |
---|---|---|
committer | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2010-03-11 16:07:37 +0000 |
commit | 0336c42333d7728254cc259c952c3caa9342599d (patch) | |
tree | c188f624fa48659bb0bf8e4826daacccbd99ae12 /org.jacoco.core.test/src/org/jacoco/core/test/validation/targets | |
parent | c40fa1d6574fbbaeda0a2d5ef5e1252ab503d560 (diff) | |
download | jacoco-0336c42333d7728254cc259c952c3caa9342599d.tar.gz |
Additional validation test for not operator.
Diffstat (limited to 'org.jacoco.core.test/src/org/jacoco/core/test/validation/targets')
-rw-r--r-- | org.jacoco.core.test/src/org/jacoco/core/test/validation/targets/Target02.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/org.jacoco.core.test/src/org/jacoco/core/test/validation/targets/Target02.java b/org.jacoco.core.test/src/org/jacoco/core/test/validation/targets/Target02.java index 26844102..f7f98d0d 100644 --- a/org.jacoco.core.test/src/org/jacoco/core/test/validation/targets/Target02.java +++ b/org.jacoco.core.test/src/org/jacoco/core/test/validation/targets/Target02.java @@ -110,6 +110,15 @@ public class Target02 implements Runnable { nop(t() ? i1() : i2()); // $line-condT$
nop(f() ? i1() : i2()); // $line-condF$
+ // 9. Not (one case)
+ nop(!t()); // $line-notT$
+ nop(!f()); // $line-notF$
+
+ // 10. Not (both cases)
+ for (boolean b : new boolean[] { true, false }) {
+ nop(b); // $line-notTF$
+ }
+
}
public static void main(String[] args) {
|