| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
package org.sat4j.minisat; |
| 8 |
|
|
| 9 |
|
import junit.framework.TestCase; |
| 10 |
|
|
| 11 |
|
import org.sat4j.minisat.constraints.ClausalDataStructureWL; |
| 12 |
|
import org.sat4j.minisat.core.ILits; |
| 13 |
|
import org.sat4j.minisat.core.IOrder; |
| 14 |
|
import org.sat4j.minisat.orders.VarOrder; |
| 15 |
|
|
| 16 |
|
|
| 17 |
|
@author |
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (19) |
Complexity: 1 |
Complexity Density: 1,11 |
|
| 22 |
|
public class VarOrderTest extends TestCase { |
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0,2 |
1
PASS
|
|
| 27 |
1
|
public void testNewVar() {... |
| 28 |
1
|
int p = voc.getFromPool(-1); |
| 29 |
1
|
order.init(); |
| 30 |
1
|
assertEquals(p, order.select()); |
| 31 |
1
|
voc.satisfies(2); |
| 32 |
1
|
assertEquals(ILits.UNDEFINED, order.select()); |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
1
PASS
|
|
| 38 |
1
|
public void testNewVarint() {... |
| 39 |
|
} |
| 40 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
1
PASS
|
|
| 41 |
1
|
public void testSelect() {... |
| 42 |
|
} |
| 43 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
1
PASS
|
|
| 44 |
1
|
public void testSetVarDecay() {... |
| 45 |
|
} |
| 46 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
1
PASS
|
|
| 47 |
1
|
public void testUndo() {... |
| 48 |
|
} |
| 49 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
1
PASS
|
|
| 50 |
1
|
public void testUpdateVar() {... |
| 51 |
|
} |
| 52 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
1
PASS
|
|
| 53 |
1
|
public void testVarDecayActivity() {... |
| 54 |
|
} |
| 55 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
1
PASS
|
|
| 56 |
1
|
public void testNumberOfInterestingVariables() {... |
| 57 |
|
} |
| 58 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
1
PASS
|
|
| 59 |
1
|
public void testGetVocabulary() {... |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 64 |
|
|
| 65 |
|
@see |
| 66 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0,25 |
|
| 67 |
9
|
@Override... |
| 68 |
|
protected void setUp() throws Exception { |
| 69 |
9
|
voc = new ClausalDataStructureWL().getVocabulary(); |
| 70 |
9
|
voc.ensurePool(5); |
| 71 |
9
|
order = new VarOrder<ILits>(); |
| 72 |
9
|
order.setLits(voc); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
private ILits voc; |
| 76 |
|
|
| 77 |
|
private IOrder<ILits> order; |
| 78 |
|
} |