Files
mercury/tests/debugger/scripts.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

27 lines
798 B
Plaintext

E1: C1 CALL pred scripts.main/2-0 (det) scripts.m:21
mdb> echo on
Command echo enabled.
mdb> register --quiet
mdb> step
E2: C2 CALL pred scripts.p/1-0 (det) scripts.m:28 (scripts.m:22)
mdb> finish
E3: C2 EXIT pred scripts.p/1-0 (det) scripts.m:28 (scripts.m:22)
mdb> track 1
p(type1(1, "foo"))
q(type1(1, "foo"))
Context of current question : scripts.m:33 (scripts.m:29)
Search mode : top down
The current question was chosen because the marked subterm was bound by
the unification inside the predicate scripts.q/1 (scripts.m:33). The
path to the subterm in the atom is 1.
E4: C3 EXIT pred scripts.q/1-0 (det) scripts.m:33 (scripts.m:29)
mdb> open 1
type1(
1,
"foo"
)
mdb> grep foo 1
"foo"
mdb> continue
type1(1, "foo")