Files
mercury/tests/declarative_debugger/pd.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
1.1 KiB
Plaintext

1: 1 1 CALL pred pd.main/2-0 (det) pd.m:14
mdb> echo on
Command echo enabled.
mdb> register --quiet
mdb> break rev
0: + stop interface func pd.rev/1-0 (det)
mdb> continue
2: 2 2 CALL func pd.rev/1-0 (det) pd.m:20 (pd.m:15)
mdb> finish
15: 2 2 EXIT func pd.rev/1-0 (det) pd.m:20 (pd.m:15)
mdb> dd -d 3 -n 7
rev([1, 2, 3]) = []
Valid? no
rev_2([1, 2, 3], []) = []
Valid? pd
14: 3 3 EXIT func pd.rev_2/2-0 (det) pd.m:24 (pd.m:20)
mdb> retry
3: 3 3 CALL func pd.rev_2/2-0 (det) pd.m:24 (pd.m:20)
mdb> step
4: 3 3 SWTC func pd.rev_2/2-0 (det) s2-2; pd.m:25
mdb> step
5: 4 4 CALL func pd.rev_2/2-0 (det) pd.m:24 (pd.m:25)
mdb> finish
13: 4 4 EXIT func pd.rev_2/2-0 (det) pd.m:24 (pd.m:25)
mdb> dd -d 3 -n 7
rev_2([2, 3], [1]) = []
Valid? no
rev_2([3], [2, 1]) = []
Valid? pd
12: 5 5 EXIT func pd.rev_2/2-0 (det) pd.m:24 (pd.m:25)
mdb> dd -d 3 -n 7
rev_2([3], [2, 1]) = []
Valid? no
rev_2([], [3, 2, 1]) = []
Valid? no
Found incorrect contour:
rev_2([], [3, 2, 1]) = []
Is this a bug? yes
11: 6 6 EXIT func pd.rev_2/2-0 (det) pd.m:24 (pd.m:25)
mdb> quit -y