Commit Graph

8 Commits

Author SHA1 Message Date
Zoltan Somogyi
ecb5e4a9e6 Update the style of many test cases.
tests/declarative_debugger/*.m:
tests/exceptions/*.m:
tests/general/*.m:
tests/grade_subdirs/*.m:
tests/purity/*.m:
tests/submodules/*.m:
tests/typeclasses/*.m:
    Update programming style.

tests/declarative_debugger/*.inp:
    Update line numbers in breakpoint commands.
tests/declarative_debugger/*.exp:
    Update expected line numbers.

tests/exceptions/Mercury.options:
tests/general/Mercury.options:
    Disable some warnings that are irrelevant to the test.
2021-07-25 23:26:17 +10:00
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
Julien Fischer
7368ea828b Delete the obsolete versions of the all-solutions predicates from std_util.m.
Estimated hours taken: 0.1
Branches: main

Delete the obsolete versions of the all-solutions predicates from std_util.m.
(Normally we would wait until after the 0.13 release, but we don't want them
in the next g12 release of Mercury which is why they are being deleted now.)

Document some parts of the library that are handled as special cases by the
compiler and the declarative debugger.

library/std_util.m:
	Delete the obsolete versions of the all-solutions predicates from
	this module.

library/solutions.m:
	Mention that these predicates are handled as a special case
	in browser/declarative_tree.m:

	Reformat a descriptive comment so that the library reference manual
	doesn't have a line that exceeds 80 characters in length.

library/builtin.m:
	Mention that cc_multi_equal is handled as a special case in
	browser/declarative_tree.m.

	Mention that dynamic_cast/2 is handled as a special case in
	compiler/const_prop.m.

tests/*/*.m:
	Import solutions where necessary.
2006-04-04 02:39:23 +00:00
Fergus Henderson
4554293812 Various fixes to the test cases so that they work with `__'
Estimated hours taken: 4

Various fixes to the test cases so that they work with `__'
as a module qualifier.

tests/general/commit_bug.m:
tests/general/mode_info_bug.m:
tests/general/partition.m:
tests/hard_coded/string_alignment.m:
	Delete `nl' predicate (and replace calls with calls to `io__nl')
	to avoid ambiguities with `io__nl'.

tests/general/partition.m:
	Rename `write' as `write_s'
	to avoid ambiguities with `io__write'.

tests/warnings/singleton_test.m:
tests/warnings/singleton_test.exp:
tests/warnings/pragma_source_code.m:
tests/warnings/pragma_source_code.exp:
	s/append/my_append/g
	to avoid ambiguities with `list__append'.

tests/general/parse_list.m:
tests/general/semidet_map.m:
	s/meta__/meta_/g
	to avoid errors about defining `meta__blah' in a module
	other than `meta'.

tests/hard_coded/qual_strang.m:
tests/hard_coded/qual_strung.m:
	s/string__//g
	to avoid errors about defining `string__blah' in a module
	other than `string'.

tests/valid/middle_rec_bug.m:
	s/garbage_out__/garbage_out_/g
	to avoid errors about defining `garbage_out__blah' in a module
	other than `garbage_out'.

tests/hard_coded/qual_basic_test.m:
tests/hard_coded/qual_adv_test.m:
	Eliminate double quantifiers, e.g. delete the `io__' in
	`io:io__write_string'.
	Also test calling `write_string' without `io:' or `io__'.
1997-02-23 06:11:35 +00:00
Zoltan Somogyi
ae2ab72716 Compare actual outputs with the outputs computed by NU-Prolog.
Estimated hours taken: 1

runtests:
	Compare actual outputs with the outputs computed by NU-Prolog.

Mmake:
	Enable the dnf test.

commit_bug.m:
	Use more readable formatting.

environment.m:
	Since the expected output may be generated on a different machine
	than the one on which the test is run, don't print the value of
	a possibly machine-specific environment variable such as PATH.

semidet_lambda.m:
	Fix the name of the module.

univ.m:
	Add a couple of tests to exercise the typeinfo comparison routine.

unreachable.m:
	Fix a comment.

*.exp:
	The expected output files.
1996-11-04 07:08:57 +00:00
Fergus Henderson
6e63f99536 Fix unique mode error (main/2 was `multi') by getting
Estimated hours taken: 0.5

tests/general/commit_bug.m:
	Fix unique mode error (main/2 was `multi') by getting
	all solutions using solutions/2.
1996-01-22 05:13:21 +00:00
Fergus Henderson
bc07fec168 Add some brief comments describing what each test case tests.
tests/general/*.m:
	Add some brief comments describing what each test case tests.
1995-08-17 05:32:34 +00:00
Thomas Conway
e78d86868d added commit_bug.
Mmake:
	added commit_bug.

commit_bug.m:
	The compiler contains test cases for committing across a
	nondet goal in a semidet context, but not for committting
	across a nondet goal in a nondet context. There was a bug
	in this, which this test case exercised.
1995-08-17 01:30:56 +00:00