1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
package org.sat4j.minisat.constraints; |
8 |
|
|
9 |
|
import java.io.FileNotFoundException; |
10 |
|
import java.io.IOException; |
11 |
|
|
12 |
|
import junit.swingui.TestRunner; |
13 |
|
|
14 |
|
import org.sat4j.minisat.AbstractAcceptanceTestCase; |
15 |
|
import org.sat4j.reader.ParseFormatException; |
16 |
|
|
17 |
|
|
18 |
|
@author |
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
|
|
| 93,8% |
Uncovered Elements: 2 (32) |
Complexity: 1 |
Complexity Density: 1 |
|
23 |
|
public abstract class AbstractPigeonHoleWithCardinalityTest extends |
24 |
|
AbstractAcceptanceTestCase { |
25 |
|
|
26 |
|
protected static final String PREFIX = System.getProperty("test.pbprefix"); |
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
@param |
32 |
|
|
33 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
34 |
828
|
public AbstractPigeonHoleWithCardinalityTest(String arg) {... |
35 |
828
|
super(arg); |
36 |
|
} |
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
@param |
42 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
43 |
0
|
public static void main(String[] args) {... |
44 |
0
|
TestRunner.run(AbstractPigeonHoleWithCardinalityTest.class); |
45 |
|
} |
46 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
47 |
18
|
public void testPN34() throws FileNotFoundException, IOException,... |
48 |
|
ParseFormatException { |
49 |
18
|
assertTrue(solveInstance(PREFIX + "pigeons/PN-3-4.opb")); |
50 |
|
} |
51 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
52 |
18
|
public void testPN4() throws FileNotFoundException, IOException,... |
53 |
|
ParseFormatException { |
54 |
18
|
assertFalse(solveInstance(PREFIX + "pigeons/PN-4-3.opb")); |
55 |
|
} |
56 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
57 |
18
|
public void testPN45() throws FileNotFoundException, IOException,... |
58 |
|
ParseFormatException { |
59 |
18
|
assertTrue(solveInstance(PREFIX + "pigeons/PN-4-5.opb")); |
60 |
|
} |
61 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
62 |
18
|
public void testPN5() throws FileNotFoundException, IOException,... |
63 |
|
ParseFormatException { |
64 |
18
|
assertFalse(solveInstance(PREFIX + "pigeons/PN-5-4.opb")); |
65 |
|
} |
66 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
67 |
18
|
public void testPN56() throws FileNotFoundException, IOException,... |
68 |
|
ParseFormatException { |
69 |
18
|
assertTrue(solveInstance(PREFIX + "pigeons/PN-5-6.opb")); |
70 |
|
} |
71 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
72 |
18
|
public void testPN6() throws FileNotFoundException, IOException,... |
73 |
|
ParseFormatException { |
74 |
18
|
assertFalse(solveInstance(PREFIX + "pigeons/PN-6-5.opb")); |
75 |
|
} |
76 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
77 |
18
|
public void testPN67() throws FileNotFoundException, IOException,... |
78 |
|
ParseFormatException { |
79 |
18
|
assertTrue(solveInstance(PREFIX + "pigeons/PN-6-7.opb")); |
80 |
|
} |
81 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
82 |
18
|
public void testPN7() throws FileNotFoundException, IOException,... |
83 |
|
ParseFormatException { |
84 |
18
|
assertFalse(solveInstance(PREFIX + "pigeons/PN-7-6.opb")); |
85 |
|
} |
86 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
87 |
18
|
public void testPN78() throws FileNotFoundException, IOException,... |
88 |
|
ParseFormatException { |
89 |
18
|
assertTrue(solveInstance(PREFIX + "pigeons/PN-7-8.opb")); |
90 |
|
} |
91 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
92 |
18
|
public void testPN8() throws FileNotFoundException, IOException,... |
93 |
|
ParseFormatException { |
94 |
18
|
assertFalse(solveInstance(PREFIX + "pigeons/PN-8-7.opb")); |
95 |
|
} |
96 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
97 |
18
|
public void testPN89() throws FileNotFoundException, IOException,... |
98 |
|
ParseFormatException { |
99 |
18
|
assertTrue(solveInstance(PREFIX + "pigeons/PN-8-9.opb")); |
100 |
|
} |
101 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
102 |
18
|
public void testPN9() throws FileNotFoundException, IOException,... |
103 |
|
ParseFormatException { |
104 |
18
|
assertFalse(solveInstance(PREFIX + "pigeons/PN-9-8.opb")); |
105 |
|
} |
106 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
107 |
18
|
public void testPN910() throws FileNotFoundException, IOException,... |
108 |
|
ParseFormatException { |
109 |
18
|
assertTrue(solveInstance(PREFIX + "pigeons/PN-9-10.opb")); |
110 |
|
} |
111 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
3
FAIL
|
|
112 |
18
|
public void testPN10() throws FileNotFoundException, IOException,... |
113 |
|
ParseFormatException { |
114 |
18
|
assertFalse(solveInstance(PREFIX + "pigeons/PN-10-9.opb")); |
115 |
|
} |
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
|
124 |
|
|
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
|
133 |
|
|
134 |
|
|
135 |
|
|
136 |
|
|
137 |
|
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
|
|
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
|
|
154 |
|
|
155 |
|
|
156 |
|
|
157 |
|
|
158 |
|
|
159 |
|
|
160 |
|
|
161 |
|
|
162 |
|
|
163 |
|
|
164 |
|
|
165 |
|
|
166 |
|
|
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
|
173 |
|
|
174 |
|
|
175 |
|
|
176 |
|
|
177 |
|
|
178 |
|
|
179 |
|
|
180 |
|
|
181 |
|
|
182 |
|
} |