Files
mercury/tests/declarative_debugger/partial.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

37 lines
1.1 KiB
Plaintext

E1: C1 CALL pred partial.main/2-0 (det) partial.m:15
mdb> mdb> Contexts will not be printed.
mdb> echo on
Command echo enabled.
mdb> step
E2: C2 CALL pred partial.p/1-0 (det)
mdb> finish
E3: C2 EXIT pred partial.p/1-0 (det)
mdb> dd
p(t(1, 2))
Valid? browse 1
browser> cd 1
browser> mark
a(1)
Valid? info
Context of current question : partial.m:36 (partial.m:29)
Search mode : top down
The current question was chosen because the marked subterm was bound by
the unification inside the predicate partial.a/1 (partial.m:36). The
path to the subterm in the atom is 1.
dd> undo
p(t(1, 2))
Valid? browse 1
browser> cd 2
browser> mark
b(2)
Valid? info
Context of current question : partial.m:40 (partial.m:30)
Search mode : top down
The current question was chosen because the marked subterm was bound by
the unification inside the predicate partial.b/1 (partial.m:40). The
path to the subterm in the atom is 1.
dd> quit
Diagnosis aborted.
E3: C2 EXIT pred partial.p/1-0 (det)
mdb> quit -y