mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-19 11:23:46 +00:00
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.
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
1: 1 1 CALL pred ho3.main/2-0 (det) ho3.m:14
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> register --quiet
|
|
mdb> break p
|
|
0: + stop interface pred ho3.p/1-0 (semidet)
|
|
mdb> continue
|
|
3: 2 2 CALL pred ho3.p/1-0 (semidet) ho3.m:34 (ho3.m:16)
|
|
mdb> finish
|
|
16: 2 2 FAIL pred ho3.p/1-0 (semidet) ho3.m:34 (ho3.m:16)
|
|
mdb> dd -d 3 -n 7
|
|
Call p(1)
|
|
Unsatisfiable? no
|
|
q(0, x(0))
|
|
Valid? yes
|
|
Call x(0, 1)
|
|
Unsatisfiable? yes
|
|
q(0, y(0))
|
|
Valid? yes
|
|
Call y(0, 1)
|
|
Unsatisfiable? yes
|
|
Call q(0, _)
|
|
Solutions:
|
|
q(0, x(0))
|
|
q(0, y(0))
|
|
Complete? yes
|
|
Found partially uncovered atom:
|
|
p(1)
|
|
Is this a bug? yes
|
|
16: 2 2 FAIL pred ho3.p/1-0 (semidet) ho3.m:34 (ho3.m:16)
|
|
mdb> continue
|
|
19: 6 2 CALL pred ho3.p/1-0 (semidet) ho3.m:34 (ho3.m:23)
|
|
mdb> finish
|
|
32: 6 2 FAIL pred ho3.p/1-0 (semidet) ho3.m:34 (ho3.m:23)
|
|
mdb> dd -d 3 -n 7
|
|
Call p(2)
|
|
Unsatisfiable? no
|
|
Call x(0, 2)
|
|
Unsatisfiable? yes
|
|
Call y(0, 2)
|
|
Unsatisfiable? yes
|
|
Found partially uncovered atom:
|
|
p(2)
|
|
Is this a bug? yes
|
|
32: 6 2 FAIL pred ho3.p/1-0 (semidet) ho3.m:34 (ho3.m:23)
|
|
mdb> continue
|
|
\+ p(1).
|
|
\+ p(2).
|