| 246 | } |
| 247 | |
| 248 | static void test_10() { |
| 249 | System.out.print("test 10..."); |
| 250 | String t10 = "t"; |
| 251 | try { |
| 252 | boolean b = Query.hasSolution(t10); |
| 253 | System.out.println(t10 + " failed:"); |
| 254 | System.out.println("\tExpected: PrologException"); |
| 255 | System.out.println("\tGot: " + b); |
| 256 | // System.exit(1); |
| 257 | } catch (PrologException e) { |
| 258 | System.out.println("passed"); |
| 259 | } catch (Exception e) { |
| 260 | System.out.println("wrong exception class thrown"); |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | static void test_11() { |
| 265 | System.out.print("test 11..."); |