Commit Graph

5 Commits

Author SHA1 Message Date
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
309879db90 Change the argument ordering of predicates in the bag module in
Branches: main

Change the argument ordering of predicates in the bag module in
order to make them more conducive to the use of state variable notation.

library/bag.m:
	Make the above changes.

	Shift function definitions so that they placed with
	the corresponding predicate definitions rather than
	all being grouped at the end of the module.

library/svbag.m:
library/svqueue.m:
compiler/add_pragma.m:
compiler/term_pass2.m:
compiler/term_traversal.m:
compiler/term_util.m:
tests/hard_coded/construct_bug_submodule.m:
	Conform to the above change and remove dependencies on the
	svbag module.

NEWS:
	Announce the change.
2011-05-03 14:22:15 +00:00
Zoltan Somogyi
80bd3ca5b3 Make these tests conform to our style conventions.
Estimated hours taken: 0.1
Branches: main

tests/hard_coded/construct_bug.m:
tests/hard_coded/construct_bug_submodule.m:
tests/hard_coded/typeclasses/complicated_constraint.m:
	Make these tests conform to our style conventions. The old style made
	the code quite hard to read.
2007-12-13 08:40:35 +00:00
Julien Fischer
459847a064 Move the univ, maybe, pair and unit types from std_util into their own
Estimated hours taken: 18
Branches: main

Move the univ, maybe, pair and unit types from std_util into their own
modules.  std_util still contains the general purpose higher-order programming
constructs.

library/std_util.m:
	Move univ, maybe, pair and unit (plus any other related types
	and procedures) into their own modules.

library/maybe.m:
	New module.  This contains the maybe and maybe_error types and
	the associated procedures.

library/pair.m:
	New module.  This contains the pair type and associated procedures.

library/unit.m:
	New module. This contains the types unit/0 and unit/1.

library/univ.m:
	New module. This contains the univ type and associated procedures.

library/library.m:
	Add the new modules.

library/private_builtin.m:
	Update the declaration of the type_ctor_info struct for univ.

runtime/mercury.h:
	Update the declaration for the type_ctor_info struct for univ.

runtime/mercury_mcpp.h:
runtime/mercury_hlc_types.h:
	Update the definition of MR_Univ.

runtime/mercury_init.h:
	Fix a comment: ML_type_name is now exported from type_desc.m.

compiler/mlds_to_il.m:
	Update the the name of the module that defines univs (which are
	handled specially by the il code generator.)

library/*.m:
compiler/*.m:
browser/*.m:
mdbcomp/*.m:
profiler/*.m:
deep_profiler/*.m:
	Conform to the above changes.  Import the new modules where they
	are needed; don't import std_util where it isn't needed.

	Fix formatting in lots of modules.  Delete duplicate module
	imports.

tests/*:
	Update the test suite to confrom to the above changes.
2006-03-29 08:09:58 +00:00
Fergus Henderson
931b9a866a Fix a bug reported by Ondrej Bojar (obo [AT] cuni [DOT] cz)
Estimated hours taken: 2.5
Branches: main

Fix a bug reported by Ondrej Bojar (obo [AT] cuni [DOT] cz)
which caused seg faults in io.read_binary.

library/construct.m:
	Expand equivalence types in get_functor/5, get_functor_2/6,
	and construct/4.  This is needed in order to have the proper
	type_info to use when substituting type parameters in the list
	of argument types for the functor.

tests/hard_coded/Mmakefile:
tests/hard_coded/construct_bug.m:
tests/hard_coded/construct_bug.exp:
tests/hard_coded/construct_bug_submodule.m:
	Add a new regression test.
2004-02-16 02:28:09 +00:00