MCPcopy Create free account
hub / github.com/SWI-Prolog/packages-jpl / test_10

Method test_10

src/examples/java/test/Test.java:248–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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...");

Callers 1

run_testsMethod · 0.95

Calls 1

hasSolutionMethod · 0.95

Tested by

no test coverage detected