| 1 |
|
package org.sat4j.minisat.datatype; |
| 2 |
|
|
| 3 |
|
import junit.framework.TestCase; |
| 4 |
|
|
| 5 |
|
import org.sat4j.minisat.core.Lbool; |
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
@author |
| 14 |
|
|
| 15 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (15) |
Complexity: 1 |
Complexity Density: 0,36 |
|
| 16 |
|
public class LboolTest extends TestCase { |
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
@param |
| 22 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 23 |
3
|
public LboolTest(String arg0) {... |
| 24 |
3
|
super(arg0); |
| 25 |
|
} |
| 26 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0,33 |
1
PASS
|
|
| 27 |
1
|
public void testNot() {... |
| 28 |
1
|
assertEquals(Lbool.FALSE, Lbool.TRUE.not()); |
| 29 |
1
|
assertEquals(Lbool.TRUE, Lbool.FALSE.not()); |
| 30 |
1
|
assertEquals(Lbool.UNDEFINED, Lbool.UNDEFINED.not()); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0,25 |
1
PASS
|
|
| 36 |
1
|
public void testEqualsObject() {... |
| 37 |
1
|
assertEquals(Lbool.FALSE, Lbool.FALSE); |
| 38 |
1
|
assertNotSame(Lbool.FALSE, Lbool.TRUE); |
| 39 |
1
|
assertNotSame(Lbool.FALSE, Lbool.UNDEFINED); |
| 40 |
1
|
assertNotSame(Lbool.TRUE, Lbool.UNDEFINED); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0,33 |
1
PASS
|
|
| 46 |
1
|
public void testToString() {... |
| 47 |
1
|
assertEquals("U", Lbool.UNDEFINED.toString()); |
| 48 |
1
|
assertEquals("T", Lbool.TRUE.toString()); |
| 49 |
1
|
assertEquals("F", Lbool.FALSE.toString()); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
} |