| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.qedeq.kernel.bo.logic.wf; |
| 17 |
|
|
| 18 |
|
import org.qedeq.kernel.base.list.Element; |
| 19 |
|
import org.qedeq.kernel.bo.logic.FormulaChecker; |
| 20 |
|
import org.qedeq.kernel.common.DefaultModuleAddress; |
| 21 |
|
import org.qedeq.kernel.common.ModuleContext; |
| 22 |
|
|
| 23 |
|
|
| 24 |
|
@link |
| 25 |
|
|
| 26 |
|
|
| 27 |
|
@version |
| 28 |
|
@author |
| 29 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (154) |
Complexity: 32 |
Complexity Density: 0.26 |
|
| 30 |
|
public class FormulaCheckerQuantifiersTest extends AbstractFormulaChecker { |
| 31 |
|
|
| 32 |
|
private ModuleContext context; |
| 33 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 34 |
30
|
protected void setUp() throws Exception {... |
| 35 |
30
|
context = new ModuleContext(new DefaultModuleAddress("http://memory.org/sample.xml"), "getElement()"); |
| 36 |
|
} |
| 37 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 38 |
30
|
protected void tearDown() throws Exception {... |
| 39 |
30
|
context = null; |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
@throws |
| 48 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 49 |
1
|
public void testQuantifiersPositive01() throws Exception {... |
| 50 |
1
|
final Element ele = TestParser.createElement( |
| 51 |
|
"<FORALL><VAR id=\"x\" /><PREDVAR id=\"A\"/></FORALL>"); |
| 52 |
|
|
| 53 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context).hasErrors()); |
| 54 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context, getChecker()).hasErrors()); |
| 55 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context, getCheckerWithoutClass()) |
| 56 |
|
.hasErrors()); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 64 |
|
@throws |
| 65 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 66 |
1
|
public void testQuantifiersPositive02() throws Exception {... |
| 67 |
1
|
final Element ele = TestParser.createElement( |
| 68 |
|
"<EXISTS><VAR id=\"x\" /><PREDVAR id=\"A\"/></EXISTS>"); |
| 69 |
|
|
| 70 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context).hasErrors()); |
| 71 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context, getChecker()).hasErrors()); |
| 72 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context, getCheckerWithoutClass()) |
| 73 |
|
.hasErrors()); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
|
| 77 |
|
|
| 78 |
|
|
| 79 |
|
|
| 80 |
|
|
| 81 |
|
@throws |
| 82 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 83 |
1
|
public void testQuantifiersPositive03() throws Exception {... |
| 84 |
1
|
final Element ele = TestParser.createElement( |
| 85 |
|
"<EXISTSU><VAR id=\"x\" /><PREDVAR id=\"A\"/></EXISTSU>"); |
| 86 |
|
|
| 87 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context).hasErrors()); |
| 88 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context, getChecker()).hasErrors()); |
| 89 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context, getCheckerWithoutClass()) |
| 90 |
|
.hasErrors()); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
|
| 94 |
|
|
| 95 |
|
|
| 96 |
|
|
| 97 |
|
|
| 98 |
|
@throws |
| 99 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 100 |
1
|
public void testQuantifiersPositive04() throws Exception {... |
| 101 |
1
|
final Element ele = TestParser.createElement( |
| 102 |
|
"<FORALL>" + |
| 103 |
|
" <VAR id=\"x\" />" + |
| 104 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 105 |
|
" <PREDVAR id=\"A\"/>" + |
| 106 |
|
"</FORALL>"); |
| 107 |
|
|
| 108 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context).hasErrors()); |
| 109 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context, getChecker()).hasErrors()); |
| 110 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context, getCheckerWithoutClass()) |
| 111 |
|
.hasErrors()); |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
|
| 115 |
|
|
| 116 |
|
|
| 117 |
|
|
| 118 |
|
|
| 119 |
|
@throws |
| 120 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 121 |
1
|
public void testQuantifiersPositive05() throws Exception {... |
| 122 |
1
|
final Element ele = TestParser.createElement( |
| 123 |
|
"<EXISTS>" + |
| 124 |
|
" <VAR id=\"x\" />" + |
| 125 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 126 |
|
" <PREDVAR id=\"A\"/>" + |
| 127 |
|
"</EXISTS>"); |
| 128 |
|
|
| 129 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context).hasErrors()); |
| 130 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context, getChecker()).hasErrors()); |
| 131 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context, getCheckerWithoutClass()) |
| 132 |
|
.hasErrors()); |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
|
| 136 |
|
|
| 137 |
|
|
| 138 |
|
|
| 139 |
|
|
| 140 |
|
@throws |
| 141 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 142 |
1
|
public void testQuantifiersPositive06() throws Exception {... |
| 143 |
1
|
final Element ele = TestParser.createElement( |
| 144 |
|
"<EXISTSU>" + |
| 145 |
|
" <VAR id=\"x\" />" + |
| 146 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 147 |
|
" <PREDVAR id=\"A\"/>" + |
| 148 |
|
"</EXISTSU>"); |
| 149 |
|
|
| 150 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context).hasErrors()); |
| 151 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context, getChecker()).hasErrors()); |
| 152 |
1
|
assertFalse(FormulaChecker.checkFormula(ele, context, getCheckerWithoutClass()) |
| 153 |
|
.hasErrors()); |
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
|
| 157 |
|
|
| 158 |
|
|
| 159 |
|
|
| 160 |
|
|
| 161 |
|
@throws |
| 162 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 163 |
1
|
public void testQuantifiersNegative01() throws Exception {... |
| 164 |
1
|
final Element ele = TestParser.createElement( |
| 165 |
|
"<FORALL>" + |
| 166 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 167 |
|
" <PREDVAR id=\"A\"/>" + |
| 168 |
|
"</FORALL>"); |
| 169 |
|
|
| 170 |
1
|
LogicalCheckExceptionList list = |
| 171 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 172 |
1
|
assertEquals(1, list.size()); |
| 173 |
1
|
assertEquals(30540, list.get(0).getErrorCode()); |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
|
| 177 |
|
|
| 178 |
|
|
| 179 |
|
|
| 180 |
|
|
| 181 |
|
@throws |
| 182 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 183 |
1
|
public void testQuantifiersNegative02() throws Exception {... |
| 184 |
1
|
final Element ele = TestParser.createElement( |
| 185 |
|
"<EXISTS>" + |
| 186 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 187 |
|
" <PREDVAR id=\"A\"/>" + |
| 188 |
|
"</EXISTS>"); |
| 189 |
|
|
| 190 |
1
|
LogicalCheckExceptionList list = |
| 191 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 192 |
1
|
assertEquals(1, list.size()); |
| 193 |
1
|
assertEquals(30540, list.get(0).getErrorCode()); |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
|
| 197 |
|
|
| 198 |
|
|
| 199 |
|
|
| 200 |
|
|
| 201 |
|
@throws |
| 202 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 203 |
1
|
public void testQuantifiersNegative03() throws Exception {... |
| 204 |
1
|
final Element ele = TestParser.createElement( |
| 205 |
|
"<EXISTSU>" + |
| 206 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 207 |
|
" <PREDVAR id=\"A\"/>" + |
| 208 |
|
"</EXISTSU>"); |
| 209 |
|
|
| 210 |
1
|
LogicalCheckExceptionList list = |
| 211 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 212 |
1
|
assertEquals(1, list.size()); |
| 213 |
1
|
assertEquals(30540, list.get(0).getErrorCode()); |
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
|
| 217 |
|
|
| 218 |
|
|
| 219 |
|
|
| 220 |
|
|
| 221 |
|
@throws |
| 222 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 223 |
1
|
public void testQuantifiersNegative04() throws Exception {... |
| 224 |
1
|
final Element ele = TestParser.createElement( |
| 225 |
|
"<FORALL>" + |
| 226 |
|
" <VAR id=\"x\" />" + |
| 227 |
|
" <FORALL>" + |
| 228 |
|
" <VAR id=\"x\" />" + |
| 229 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 230 |
|
" </FORALL>" + |
| 231 |
|
"</FORALL>"); |
| 232 |
|
|
| 233 |
1
|
LogicalCheckExceptionList list = |
| 234 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 235 |
1
|
assertEquals(1, list.size()); |
| 236 |
1
|
assertEquals(30550, list.get(0).getErrorCode()); |
| 237 |
|
} |
| 238 |
|
|
| 239 |
|
|
| 240 |
|
|
| 241 |
|
|
| 242 |
|
|
| 243 |
|
|
| 244 |
|
@throws |
| 245 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 246 |
1
|
public void testQuantifiersNegative05() throws Exception {... |
| 247 |
1
|
final Element ele = TestParser.createElement( |
| 248 |
|
"<FORALL>" + |
| 249 |
|
" <VAR id=\"x\" />" + |
| 250 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 251 |
|
" <FORALL>" + |
| 252 |
|
" <VAR id=\"x\" />" + |
| 253 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 254 |
|
" </FORALL>" + |
| 255 |
|
"</FORALL>"); |
| 256 |
|
|
| 257 |
1
|
LogicalCheckExceptionList list = |
| 258 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 259 |
1
|
assertEquals(1, list.size()); |
| 260 |
1
|
assertEquals(30550, list.get(0).getErrorCode()); |
| 261 |
|
} |
| 262 |
|
|
| 263 |
|
|
| 264 |
|
|
| 265 |
|
|
| 266 |
|
|
| 267 |
|
|
| 268 |
|
@throws |
| 269 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 270 |
1
|
public void testQuantifiersNegative06() throws Exception {... |
| 271 |
1
|
final Element ele = TestParser.createElement( |
| 272 |
|
"<FORALL>" + |
| 273 |
|
" <VAR id=\"x\" />" + |
| 274 |
|
" <PREDVAR id=\"phi\">" + |
| 275 |
|
" <CLASS>" + |
| 276 |
|
" <VAR id=\"x\" />" + |
| 277 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 278 |
|
" </CLASS>" + |
| 279 |
|
" </PREDVAR>" + |
| 280 |
|
"</FORALL>"); |
| 281 |
|
|
| 282 |
1
|
LogicalCheckExceptionList list = |
| 283 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 284 |
1
|
assertEquals(1, list.size()); |
| 285 |
1
|
assertEquals(30550, list.get(0).getErrorCode()); |
| 286 |
|
} |
| 287 |
|
|
| 288 |
|
|
| 289 |
|
|
| 290 |
|
|
| 291 |
|
|
| 292 |
|
|
| 293 |
|
@throws |
| 294 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 295 |
1
|
public void testQuantifiersNegative07() throws Exception {... |
| 296 |
1
|
final Element ele = TestParser.createElement( |
| 297 |
|
"<EXISTS>" + |
| 298 |
|
" <VAR id=\"x\" />" + |
| 299 |
|
" <FORALL>" + |
| 300 |
|
" <VAR id=\"x\" />" + |
| 301 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 302 |
|
" </FORALL>" + |
| 303 |
|
"</EXISTS>"); |
| 304 |
|
|
| 305 |
1
|
LogicalCheckExceptionList list = |
| 306 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 307 |
1
|
assertEquals(1, list.size()); |
| 308 |
1
|
assertEquals(30550, list.get(0).getErrorCode()); |
| 309 |
|
} |
| 310 |
|
|
| 311 |
|
|
| 312 |
|
|
| 313 |
|
|
| 314 |
|
|
| 315 |
|
|
| 316 |
|
@throws |
| 317 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 318 |
1
|
public void testQuantifiersNegative08() throws Exception {... |
| 319 |
1
|
final Element ele = TestParser.createElement( |
| 320 |
|
"<EXISTS>" + |
| 321 |
|
" <VAR id=\"x\" />" + |
| 322 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 323 |
|
" <EXISTS>" + |
| 324 |
|
" <VAR id=\"x\" />" + |
| 325 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 326 |
|
" </EXISTS>" + |
| 327 |
|
"</EXISTS>"); |
| 328 |
|
|
| 329 |
1
|
LogicalCheckExceptionList list = |
| 330 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 331 |
1
|
assertEquals(1, list.size()); |
| 332 |
1
|
assertEquals(30550, list.get(0).getErrorCode()); |
| 333 |
|
} |
| 334 |
|
|
| 335 |
|
|
| 336 |
|
|
| 337 |
|
|
| 338 |
|
|
| 339 |
|
|
| 340 |
|
@throws |
| 341 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 342 |
1
|
public void testQuantifiersNegative09() throws Exception {... |
| 343 |
1
|
final Element ele = TestParser.createElement( |
| 344 |
|
"<EXISTS>" + |
| 345 |
|
" <VAR id=\"x\" />" + |
| 346 |
|
" <PREDVAR id=\"phi\">" + |
| 347 |
|
" <CLASS>" + |
| 348 |
|
" <VAR id=\"x\" />" + |
| 349 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 350 |
|
" </CLASS>" + |
| 351 |
|
" </PREDVAR>" + |
| 352 |
|
"</EXISTS>"); |
| 353 |
|
|
| 354 |
1
|
LogicalCheckExceptionList list = |
| 355 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 356 |
1
|
assertEquals(1, list.size()); |
| 357 |
1
|
assertEquals(30550, list.get(0).getErrorCode()); |
| 358 |
|
} |
| 359 |
|
|
| 360 |
|
|
| 361 |
|
|
| 362 |
|
|
| 363 |
|
|
| 364 |
|
|
| 365 |
|
@throws |
| 366 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 367 |
1
|
public void testQuantifiersNegative10() throws Exception {... |
| 368 |
1
|
final Element ele = TestParser.createElement( |
| 369 |
|
"<EXISTSU>" + |
| 370 |
|
" <VAR id=\"x\" />" + |
| 371 |
|
" <FORALL>" + |
| 372 |
|
" <VAR id=\"x\" />" + |
| 373 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 374 |
|
" </FORALL>" + |
| 375 |
|
"</EXISTSU>"); |
| 376 |
|
|
| 377 |
1
|
LogicalCheckExceptionList list = |
| 378 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 379 |
1
|
assertEquals(1, list.size()); |
| 380 |
1
|
assertEquals(30550, list.get(0).getErrorCode()); |
| 381 |
|
} |
| 382 |
|
|
| 383 |
|
|
| 384 |
|
|
| 385 |
|
|
| 386 |
|
|
| 387 |
|
|
| 388 |
|
@throws |
| 389 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 390 |
1
|
public void testQuantifiersNegative11() throws Exception {... |
| 391 |
1
|
final Element ele = TestParser.createElement( |
| 392 |
|
"<EXISTSU>" + |
| 393 |
|
" <VAR id=\"x\" />" + |
| 394 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 395 |
|
" <EXISTSU>" + |
| 396 |
|
" <VAR id=\"x\" />" + |
| 397 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 398 |
|
" </EXISTSU>" + |
| 399 |
|
"</EXISTSU>"); |
| 400 |
|
|
| 401 |
1
|
LogicalCheckExceptionList list = |
| 402 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 403 |
1
|
assertEquals(1, list.size()); |
| 404 |
1
|
assertEquals(30550, list.get(0).getErrorCode()); |
| 405 |
|
} |
| 406 |
|
|
| 407 |
|
|
| 408 |
|
|
| 409 |
|
|
| 410 |
|
|
| 411 |
|
|
| 412 |
|
@throws |
| 413 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 414 |
1
|
public void testQuantifiersNegative12() throws Exception {... |
| 415 |
1
|
final Element ele = TestParser.createElement( |
| 416 |
|
"<EXISTSU>" + |
| 417 |
|
" <VAR id=\"x\" />" + |
| 418 |
|
" <PREDVAR id=\"phi\">" + |
| 419 |
|
" <CLASS>" + |
| 420 |
|
" <VAR id=\"x\" />" + |
| 421 |
|
" <PREDVAR id=\"phi\"><VAR id=\"x\" /></PREDVAR>" + |
| 422 |
|
" </CLASS>" + |
| 423 |
|
" </PREDVAR>" + |
| 424 |
|
"</EXISTSU>"); |
| 425 |
|
|
| 426 |
1
|
LogicalCheckExceptionList list = |
| 427 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 428 |
1
|
assertEquals(1, list.size()); |
| 429 |
1
|
assertEquals(30550, list.get(0).getErrorCode()); |
| 430 |
|
} |
| 431 |
|
|
| 432 |
|
|
| 433 |
|
|
| 434 |
|
|
| 435 |
|
|
| 436 |
|
|
| 437 |
|
@throws |
| 438 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 439 |
1
|
public void testQuantifiersNegative16() throws Exception {... |
| 440 |
1
|
final Element ele = TestParser.createElement( |
| 441 |
|
"<FORALL>" + |
| 442 |
|
" <VAR id=\"x\" />" + |
| 443 |
|
" <PREDVAR id=\"phi\">" + |
| 444 |
|
" <VAR id=\"x\" />" + |
| 445 |
|
" <VAR id=\"y\" />" + |
| 446 |
|
" </PREDVAR>" + |
| 447 |
|
" <PREDVAR id=\"phi\">" + |
| 448 |
|
" <CLASS>" + |
| 449 |
|
" <VAR id=\"y\" />" + |
| 450 |
|
" <PREDVAR id=\"A\"/>" + |
| 451 |
|
" </CLASS>" + |
| 452 |
|
" </PREDVAR>" + |
| 453 |
|
"</FORALL>"); |
| 454 |
|
|
| 455 |
1
|
LogicalCheckExceptionList list = |
| 456 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 457 |
1
|
assertEquals(1, list.size()); |
| 458 |
1
|
assertEquals(30770, list.get(0).getErrorCode()); |
| 459 |
|
} |
| 460 |
|
|
| 461 |
|
|
| 462 |
|
|
| 463 |
|
|
| 464 |
|
|
| 465 |
|
|
| 466 |
|
@throws |
| 467 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 468 |
1
|
public void testQuantifiersNegative17() throws Exception {... |
| 469 |
1
|
final Element ele = TestParser.createElement( |
| 470 |
|
"<EXISTS>" + |
| 471 |
|
" <VAR id=\"x\" />" + |
| 472 |
|
" <PREDVAR id=\"phi\">" + |
| 473 |
|
" <VAR id=\"x\" />" + |
| 474 |
|
" <VAR id=\"y\" />" + |
| 475 |
|
" </PREDVAR>" + |
| 476 |
|
" <PREDVAR id=\"phi\">" + |
| 477 |
|
" <CLASS>" + |
| 478 |
|
" <VAR id=\"y\" />" + |
| 479 |
|
" <PREDVAR id=\"A\"/>" + |
| 480 |
|
" </CLASS>" + |
| 481 |
|
" </PREDVAR>" + |
| 482 |
|
"</EXISTS>"); |
| 483 |
|
|
| 484 |
1
|
LogicalCheckExceptionList list = |
| 485 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 486 |
1
|
assertEquals(1, list.size()); |
| 487 |
1
|
assertEquals(30770, list.get(0).getErrorCode()); |
| 488 |
|
} |
| 489 |
|
|
| 490 |
|
|
| 491 |
|
|
| 492 |
|
|
| 493 |
|
|
| 494 |
|
|
| 495 |
|
@throws |
| 496 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 497 |
1
|
public void testQuantifiersNegative18() throws Exception {... |
| 498 |
1
|
final Element ele = TestParser.createElement( |
| 499 |
|
"<EXISTSU>" + |
| 500 |
|
" <VAR id=\"x\" />" + |
| 501 |
|
" <PREDVAR id=\"phi\">" + |
| 502 |
|
" <VAR id=\"x\" />" + |
| 503 |
|
" <VAR id=\"y\" />" + |
| 504 |
|
" </PREDVAR>" + |
| 505 |
|
" <PREDVAR id=\"phi\">" + |
| 506 |
|
" <CLASS>" + |
| 507 |
|
" <VAR id=\"y\" />" + |
| 508 |
|
" <PREDVAR id=\"A\"/>" + |
| 509 |
|
" </CLASS>" + |
| 510 |
|
" </PREDVAR>" + |
| 511 |
|
"</EXISTSU>"); |
| 512 |
|
|
| 513 |
1
|
LogicalCheckExceptionList list = |
| 514 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 515 |
1
|
assertEquals(1, list.size()); |
| 516 |
1
|
assertEquals(30770, list.get(0).getErrorCode()); |
| 517 |
|
} |
| 518 |
|
|
| 519 |
|
|
| 520 |
|
|
| 521 |
|
|
| 522 |
|
|
| 523 |
|
|
| 524 |
|
@throws |
| 525 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 526 |
1
|
public void testQuantifiersNegative19() throws Exception {... |
| 527 |
1
|
final Element ele = TestParser.createElement( |
| 528 |
|
"<FORALL>" + |
| 529 |
|
" <VAR id=\"x\" />" + |
| 530 |
|
" <PREDVAR id=\"phi\">" + |
| 531 |
|
" <VAR id=\"x\" />" + |
| 532 |
|
" <VAR id=\"y\" />" + |
| 533 |
|
" </PREDVAR>" + |
| 534 |
|
" <FORALL>" + |
| 535 |
|
" <VAR id=\"y\" />" + |
| 536 |
|
" <PREDVAR id=\"A\"/>" + |
| 537 |
|
" </FORALL>" + |
| 538 |
|
"</FORALL>"); |
| 539 |
|
|
| 540 |
1
|
LogicalCheckExceptionList list = |
| 541 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 542 |
1
|
assertEquals(1, list.size()); |
| 543 |
1
|
assertEquals(30770, list.get(0).getErrorCode()); |
| 544 |
|
} |
| 545 |
|
|
| 546 |
|
|
| 547 |
|
|
| 548 |
|
|
| 549 |
|
|
| 550 |
|
|
| 551 |
|
@throws |
| 552 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 553 |
1
|
public void testQuantifiersNegative20() throws Exception {... |
| 554 |
1
|
final Element ele = TestParser.createElement( |
| 555 |
|
"<EXISTS>" + |
| 556 |
|
" <VAR id=\"x\" />" + |
| 557 |
|
" <PREDVAR id=\"phi\">" + |
| 558 |
|
" <VAR id=\"x\" />" + |
| 559 |
|
" <VAR id=\"y\" />" + |
| 560 |
|
" </PREDVAR>" + |
| 561 |
|
" <FORALL>" + |
| 562 |
|
" <VAR id=\"y\" />" + |
| 563 |
|
" <PREDVAR id=\"A\"/>" + |
| 564 |
|
" </FORALL>" + |
| 565 |
|
"</EXISTS>"); |
| 566 |
|
|
| 567 |
1
|
LogicalCheckExceptionList list = |
| 568 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 569 |
1
|
assertEquals(1, list.size()); |
| 570 |
1
|
assertEquals(30770, list.get(0).getErrorCode()); |
| 571 |
|
} |
| 572 |
|
|
| 573 |
|
|
| 574 |
|
|
| 575 |
|
|
| 576 |
|
|
| 577 |
|
|
| 578 |
|
@throws |
| 579 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 580 |
1
|
public void testQuantifiersNegative21() throws Exception {... |
| 581 |
1
|
final Element ele = TestParser.createElement( |
| 582 |
|
"<EXISTSU>" + |
| 583 |
|
" <VAR id=\"x\" />" + |
| 584 |
|
" <PREDVAR id=\"phi\">" + |
| 585 |
|
" <VAR id=\"x\" />" + |
| 586 |
|
" <VAR id=\"y\" />" + |
| 587 |
|
" </PREDVAR>" + |
| 588 |
|
" <EXISTSU>" + |
| 589 |
|
" <VAR id=\"y\" />" + |
| 590 |
|
" <PREDVAR id=\"phi\">" + |
| 591 |
|
" <VAR id=\"y\" />" + |
| 592 |
|
" </PREDVAR>" + |
| 593 |
|
" <PREDVAR id=\"A\"/>" + |
| 594 |
|
" </EXISTSU>" + |
| 595 |
|
"</EXISTSU>"); |
| 596 |
|
|
| 597 |
1
|
LogicalCheckExceptionList list = |
| 598 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 599 |
1
|
assertEquals(1, list.size()); |
| 600 |
1
|
assertEquals(30770, list.get(0).getErrorCode()); |
| 601 |
|
} |
| 602 |
|
|
| 603 |
|
|
| 604 |
|
|
| 605 |
|
|
| 606 |
|
|
| 607 |
|
|
| 608 |
|
@throws |
| 609 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 610 |
1
|
public void testQuantifiersNegative22() throws Exception {... |
| 611 |
1
|
final Element ele = TestParser.createElement( |
| 612 |
|
"<FORALL>" + |
| 613 |
|
" <VAR id=\"x\" />" + |
| 614 |
|
" <PREDVAR id=\"phi\">" + |
| 615 |
|
" <VAR id=\"x\" />" + |
| 616 |
|
" <CLASS>" + |
| 617 |
|
" <VAR id=\"y\" />" + |
| 618 |
|
" <PREDVAR id=\"A\"/>" + |
| 619 |
|
" </CLASS>" + |
| 620 |
|
" </PREDVAR>" + |
| 621 |
|
" <PREDVAR id=\"phi\">" + |
| 622 |
|
" <VAR id=\"x\" />" + |
| 623 |
|
" <VAR id=\"y\" />" + |
| 624 |
|
" </PREDVAR>" + |
| 625 |
|
"</FORALL>"); |
| 626 |
|
|
| 627 |
1
|
LogicalCheckExceptionList list = |
| 628 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 629 |
1
|
assertEquals(1, list.size()); |
| 630 |
1
|
assertEquals(30780, list.get(0).getErrorCode()); |
| 631 |
|
} |
| 632 |
|
|
| 633 |
|
|
| 634 |
|
|
| 635 |
|
|
| 636 |
|
|
| 637 |
|
|
| 638 |
|
@throws |
| 639 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 640 |
1
|
public void testQuantifiersNegative23() throws Exception {... |
| 641 |
1
|
final Element ele = TestParser.createElement( |
| 642 |
|
"<EXISTS>" + |
| 643 |
|
" <VAR id=\"x\" />" + |
| 644 |
|
" <PREDVAR id=\"phi\">" + |
| 645 |
|
" <VAR id=\"x\" />" + |
| 646 |
|
" <CLASS>" + |
| 647 |
|
" <VAR id=\"y\" />" + |
| 648 |
|
" <PREDVAR id=\"A\"/>" + |
| 649 |
|
" </CLASS>" + |
| 650 |
|
" </PREDVAR>" + |
| 651 |
|
" <PREDVAR id=\"phi\">" + |
| 652 |
|
" <VAR id=\"x\" />" + |
| 653 |
|
" <VAR id=\"y\" />" + |
| 654 |
|
" </PREDVAR>" + |
| 655 |
|
"</EXISTS>"); |
| 656 |
|
|
| 657 |
1
|
LogicalCheckExceptionList list = |
| 658 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 659 |
1
|
assertEquals(1, list.size()); |
| 660 |
1
|
assertEquals(30780, list.get(0).getErrorCode()); |
| 661 |
|
} |
| 662 |
|
|
| 663 |
|
|
| 664 |
|
|
| 665 |
|
|
| 666 |
|
|
| 667 |
|
|
| 668 |
|
@throws |
| 669 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 670 |
1
|
public void testQuantifiersNegative24() throws Exception {... |
| 671 |
1
|
final Element ele = TestParser.createElement( |
| 672 |
|
"<EXISTSU>" + |
| 673 |
|
" <VAR id=\"x\" />" + |
| 674 |
|
" <PREDVAR id=\"phi\">" + |
| 675 |
|
" <CLASS>" + |
| 676 |
|
" <VAR id=\"y\" />" + |
| 677 |
|
" <PREDVAR id=\"A\"/>" + |
| 678 |
|
" </CLASS>" + |
| 679 |
|
" <VAR id=\"x\" />" + |
| 680 |
|
" </PREDVAR>" + |
| 681 |
|
" <PREDVAR id=\"phi\">" + |
| 682 |
|
" <VAR id=\"x\" />" + |
| 683 |
|
" <VAR id=\"y\" />" + |
| 684 |
|
" </PREDVAR>" + |
| 685 |
|
"</EXISTSU>"); |
| 686 |
|
|
| 687 |
1
|
LogicalCheckExceptionList list = |
| 688 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 689 |
1
|
assertEquals(1, list.size()); |
| 690 |
1
|
assertEquals(30780, list.get(0).getErrorCode()); |
| 691 |
|
} |
| 692 |
|
|
| 693 |
|
|
| 694 |
|
|
| 695 |
|
|
| 696 |
|
|
| 697 |
|
|
| 698 |
|
@throws |
| 699 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 700 |
1
|
public void testQuantifiersNegative25() throws Exception {... |
| 701 |
1
|
final Element ele = TestParser.createElement( |
| 702 |
|
"<FORALL>" + |
| 703 |
|
" <VAR id=\"x\" />" + |
| 704 |
|
" <FORALL>" + |
| 705 |
|
" <VAR id=\"y\" />" + |
| 706 |
|
" <PREDVAR id=\"psi\">" + |
| 707 |
|
" <VAR id=\"x\" />" + |
| 708 |
|
" </PREDVAR>" + |
| 709 |
|
" </FORALL>" + |
| 710 |
|
" <PREDVAR id=\"phi\">" + |
| 711 |
|
" <VAR id=\"x\" />" + |
| 712 |
|
" <VAR id=\"y\" />" + |
| 713 |
|
" </PREDVAR>" + |
| 714 |
|
"</FORALL>"); |
| 715 |
|
|
| 716 |
1
|
LogicalCheckExceptionList list = |
| 717 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 718 |
1
|
assertEquals(1, list.size()); |
| 719 |
1
|
assertEquals(30780, list.get(0).getErrorCode()); |
| 720 |
|
} |
| 721 |
|
|
| 722 |
|
|
| 723 |
|
|
| 724 |
|
|
| 725 |
|
|
| 726 |
|
|
| 727 |
|
@throws |
| 728 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 729 |
1
|
public void testQuantifiersNegative26() throws Exception {... |
| 730 |
1
|
final Element ele = TestParser.createElement( |
| 731 |
|
"<EXISTS>" + |
| 732 |
|
" <VAR id=\"x\" />" + |
| 733 |
|
" <FORALL>" + |
| 734 |
|
" <VAR id=\"y\" />" + |
| 735 |
|
" <PREDVAR id=\"phi\">" + |
| 736 |
|
" <VAR id=\"x\" />" + |
| 737 |
|
" <VAR id=\"y\" />" + |
| 738 |
|
" </PREDVAR>" + |
| 739 |
|
" </FORALL>" + |
| 740 |
|
" <PREDVAR id=\"phi\">" + |
| 741 |
|
" <VAR id=\"x\" />" + |
| 742 |
|
" <VAR id=\"y\" />" + |
| 743 |
|
" </PREDVAR>" + |
| 744 |
|
"</EXISTS>"); |
| 745 |
|
|
| 746 |
1
|
LogicalCheckExceptionList list = |
| 747 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 748 |
1
|
assertEquals(1, list.size()); |
| 749 |
1
|
assertEquals(30780, list.get(0).getErrorCode()); |
| 750 |
|
} |
| 751 |
|
|
| 752 |
|
|
| 753 |
|
|
| 754 |
|
|
| 755 |
|
|
| 756 |
|
|
| 757 |
|
@throws |
| 758 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 759 |
1
|
public void testQuantifiersNegative27() throws Exception {... |
| 760 |
1
|
final Element ele = TestParser.createElement( |
| 761 |
|
"<EXISTSU>" + |
| 762 |
|
" <VAR id=\"x\" />" + |
| 763 |
|
" <EXISTSU>" + |
| 764 |
|
" <VAR id=\"y\" />" + |
| 765 |
|
" <PREDVAR id=\"phi\">" + |
| 766 |
|
" <VAR id=\"y\" />" + |
| 767 |
|
" <VAR id=\"x\" />" + |
| 768 |
|
" </PREDVAR>" + |
| 769 |
|
" <PREDVAR id=\"A\"/>" + |
| 770 |
|
" </EXISTSU>" + |
| 771 |
|
" <PREDVAR id=\"phi\">" + |
| 772 |
|
" <VAR id=\"x\" />" + |
| 773 |
|
" <VAR id=\"y\" />" + |
| 774 |
|
" </PREDVAR>" + |
| 775 |
|
"</EXISTSU>"); |
| 776 |
|
|
| 777 |
1
|
LogicalCheckExceptionList list = |
| 778 |
|
FormulaChecker.checkFormula(ele, context, getChecker()); |
| 779 |
1
|
assertEquals(1, list.size()); |
| 780 |
1
|
assertEquals(30780, list.get(0).getErrorCode()); |
| 781 |
|
} |
| 782 |
|
|
| 783 |
|
} |