mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +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.
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
E1: C1 CALL pred io_stream_test.main/2-0 (det) io_stream_test.m:22
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> register --quiet
|
|
mdb> context none
|
|
Contexts will not be printed.
|
|
mdb> table_io allow
|
|
mdb> table_io start
|
|
I/O tabling started.
|
|
mdb> break io_stream_test__test
|
|
0: + stop interface pred io_stream_test.test/4-0 (det)
|
|
mdb> continue
|
|
E2: C2 CALL pred io_stream_test.test/4-0 (det)
|
|
mdb> print *
|
|
Stream (arg 1) stream(0, input, text, file("tabled_read_decl.data"))
|
|
mdb> finish -n
|
|
E3: C2 EXIT pred io_stream_test.test/4-0 (det)
|
|
mdb> print *
|
|
Stream (arg 1) stream(0, input, text, file("tabled_read_decl.data"))
|
|
N (arg 2) 1123
|
|
mdb> print
|
|
test(stream(0, input, text, file("tabled_read_decl.data")), 1123, _, _)
|
|
mdb> dd -d 3 -n 7 -a
|
|
test(stream(0, input, text, file("tabled_read_decl.data")), 1456, _, _)
|
|
Valid? print 1-2
|
|
stream(0, input, text, file("tabled_read_decl.data"))
|
|
1456
|
|
dd> p io 1-2
|
|
No such IO action.
|
|
dd> no
|
|
test_2(stream(0, input, text, file("tabled_read_decl.data")), 1, 1456, _, _)
|
|
Valid? yes
|
|
Found incorrect contour:
|
|
test_2(stream(0, input, text, file("tabled_read_decl.data")), 1, 1456, _, _)
|
|
test(stream(0, input, text, file("tabled_read_decl.data")), 1456, _, _)
|
|
Is this a bug? yes
|
|
E3: C2 EXIT pred io_stream_test.test/4-0 (det)
|
|
mdb> c -n -S
|
|
1789
|
|
142
|