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.
49 lines
972 B
Plaintext
49 lines
972 B
Plaintext
E1: C1 CALL pred ignore.main/2-0 (det) ignore.m:19
|
|
mdb> mdb> Contexts will not be printed.
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> trust ignore_1
|
|
Trusting module ignore_1
|
|
mdb> step
|
|
E2: C2 CALL pred ignore.p/1-0 (det)
|
|
mdb> finish
|
|
E3: C2 EXIT pred ignore.p/1-0 (det)
|
|
mdb> dd -d 3 -n 7
|
|
p(15)
|
|
Valid? b 1
|
|
browser> mark
|
|
q(1, 0) = 1
|
|
Valid? n
|
|
Found incorrect contour:
|
|
q(1, 0) = 1
|
|
Is this a bug? y
|
|
E4: C3 EXIT func ignore.q/2-0 (det)
|
|
mdb> break 21
|
|
0: + stop linenumber ignore.m:21
|
|
mdb> continue
|
|
E5: C4 CALL pred ignore.p/1-0 (det)
|
|
mdb> finish
|
|
E6: C4 EXIT pred ignore.p/1-0 (det)
|
|
mdb> dd -d 3 -n 7
|
|
p(15)
|
|
Valid? n
|
|
Found incorrect contour:
|
|
q(1, 0) = 1
|
|
Is this a bug? n
|
|
q(1, 0) = 1
|
|
Valid? [no] y
|
|
q(2, 1) = 3
|
|
Valid? y
|
|
q(3, 3) = 6
|
|
Valid? y
|
|
q(4, 6) = 10
|
|
Valid? y
|
|
q(5, 10) = 15
|
|
Valid? y
|
|
Found incorrect contour:
|
|
fold(q, [1, 2, 3, 4, 5], 0) = 15
|
|
p(15)
|
|
Is this a bug? y
|
|
E6: C4 EXIT pred ignore.p/1-0 (det)
|
|
mdb> quit -y
|