mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-11 03:45:33 +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.
90 lines
2.3 KiB
Plaintext
90 lines
2.3 KiB
Plaintext
1: 1 1 CALL pred family.main/2-0 (det) family.m:11
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> register --quiet
|
|
mdb> break half_siblings
|
|
0: + stop interface pred family.half_siblings/2-0 (nondet)
|
|
mdb> continue
|
|
3: 2 2 CALL pred family.half_siblings/2-0 (nondet) family.m:81 (family.m:13)
|
|
mdb> finish
|
|
268: 2 2 EXIT pred family.half_siblings/2-0 (nondet) family.m:81 (family.m:13)
|
|
mdb> dd -d 3 -n 7
|
|
half_siblings(a, b)
|
|
Valid? no
|
|
siblings(a, b)
|
|
Valid? yes
|
|
Call full_siblings(_, _)
|
|
Unsatisfiable? no
|
|
common_mother(a, b)
|
|
Valid? yes
|
|
Call common_father(_, _)
|
|
Unsatisfiable? no
|
|
parent(m, a)
|
|
Valid? yes
|
|
Call parent(a, _)
|
|
Unsatisfiable? yes
|
|
parent(m, b)
|
|
Valid? yes
|
|
Call parent(b, _)
|
|
Unsatisfiable? yes
|
|
parent(f, a)
|
|
Valid? yes
|
|
parent(f, b)
|
|
Valid? yes
|
|
parent(f, c)
|
|
Valid? yes
|
|
Call parent(c, _)
|
|
Unsatisfiable? yes
|
|
parent(s, c)
|
|
Valid? yes
|
|
Call parent(_, _)
|
|
Solutions:
|
|
parent(m, a)
|
|
parent(m, b)
|
|
parent(f, a)
|
|
parent(f, b)
|
|
parent(f, c)
|
|
parent(s, c)
|
|
Complete? yes
|
|
Found partially uncovered atom:
|
|
common_father(_, _)
|
|
Is this a bug? yes
|
|
86: 15 4 FAIL pred family.common_father/2-0 (nondet) family.m:60 (family.m:77)
|
|
mdb> continue
|
|
268: 2 2 EXIT pred family.half_siblings/2-0 (nondet) family.m:81 (family.m:13)
|
|
mdb> continue
|
|
269: 2 2 REDO pred family.half_siblings/2-0 (nondet) family.m:81 (family.m:13)
|
|
mdb> finish
|
|
530: 2 2 EXIT pred family.half_siblings/2-0 (nondet) family.m:81 (family.m:13)
|
|
mdb> dd -d 3 -n 7
|
|
half_siblings(b, a)
|
|
Valid? no
|
|
Found partially uncovered atom:
|
|
common_father(_, _)
|
|
Is this a bug? yes
|
|
348: 59 4 FAIL pred family.common_father/2-0 (nondet) family.m:60 (family.m:77)
|
|
mdb> continue
|
|
530: 2 2 EXIT pred family.half_siblings/2-0 (nondet) family.m:81 (family.m:13)
|
|
mdb> continue
|
|
531: 2 2 REDO pred family.half_siblings/2-0 (nondet) family.m:81 (family.m:13)
|
|
mdb> finish
|
|
695: 2 2 FAIL pred family.half_siblings/2-0 (nondet) family.m:81 (family.m:13)
|
|
mdb> dd -d 3 -n 7
|
|
Call half_siblings(_, _)
|
|
Solutions:
|
|
half_siblings(a, b)
|
|
half_siblings(b, a)
|
|
Complete? no
|
|
siblings(b, a)
|
|
Valid? yes
|
|
Call siblings(_, _)
|
|
Solutions:
|
|
siblings(a, b)
|
|
siblings(b, a)
|
|
Complete? no
|
|
Found partially uncovered atom:
|
|
common_father(_, _)
|
|
Is this a bug? yes
|
|
693: 110 4 FAIL pred family.common_father/2-0 (nondet) family.m:60 (family.m:71)
|
|
mdb> quit -y
|