Files
mercury/tests/declarative_debugger/ho4.exp
Zoltan Somogyi 33eb3028f5 Clean up the tests in half the test directories.
tests/accumulator/*.m:
tests/analysis_*/*.m:
tests/benchmarks*/*.m:
tests/debugger*/*.{m,exp,inp}:
tests/declarative_debugger*/*.{m,exp,inp}:
tests/dppd*/*.m:
tests/exceptions*/*.m:
tests/general*/*.m:
tests/grade_subdirs*/*.m:
tests/hard_coded*/*.m:
    Make these tests use four-space indentation, and ensure that
    each module is imported on its own line. (I intend to use the latter
    to figure out which subdirectories' tests can be executed in parallel.)

    These changes usually move code to different lines. For the debugger tests,
    specify the new line numbers in .inp files and expect them in .exp files.
2015-02-14 20:14:03 +11:00

41 lines
992 B
Plaintext

1: 1 1 CALL pred ho4.main/2-0 (det) ho4.m:14
mdb> echo on
Command echo enabled.
mdb> register --quiet
mdb> break p
0: + stop interface pred ho4.p/1-0 (semidet)
mdb> continue
3: 2 2 CALL pred ho4.p/1-0 (semidet) ho4.m:34 (ho4.m:16)
mdb> finish
18: 2 2 FAIL pred ho4.p/1-0 (semidet) ho4.m:34 (ho4.m:16)
mdb> dd -d 3 -n 7
Call p(1)
Unsatisfiable? no
q(r(5), 5)
Valid? yes
q(r(5), 0)
Valid? yes
Call q(r(5), _)
Solutions:
q(r(5), 5)
q(r(5), 0)
Complete? yes
Found partially uncovered atom:
p(1)
Is this a bug? yes
18: 2 2 FAIL pred ho4.p/1-0 (semidet) ho4.m:34 (ho4.m:16)
mdb> continue
21: 5 2 CALL pred ho4.p/1-0 (semidet) ho4.m:34 (ho4.m:23)
mdb> finish
36: 5 2 FAIL pred ho4.p/1-0 (semidet) ho4.m:34 (ho4.m:23)
mdb> dd -d 3 -n 7
Call p(2)
Unsatisfiable? no
Found partially uncovered atom:
p(2)
Is this a bug? yes
36: 5 2 FAIL pred ho4.p/1-0 (semidet) ho4.m:34 (ho4.m:23)
mdb> continue
\+ p(1).
\+ p(2).