Commit Graph

10 Commits

Author SHA1 Message Date
Zoltan Somogyi
9cacd33f47 Remove "is" as a synonym for "=", step 1.
This first step deals with the consequences of such removal.
The removal itself will happen in stage 2. That step will
add "is" to the prolog module in the library.

compiler/add_pred.m:
    Prepare for "is" being in the prolog module.

compiler/options.m:
    Add a way to test whether the change to add_pred.m is in the
    installed compiler.

tests/accumulator/base.m:
tests/accumulator/call_in_base.m:
tests/accumulator/chain.m:
tests/accumulator/commutative.m:
tests/accumulator/construct_test.m:
tests/accumulator/dcg.m:
tests/accumulator/deconstruct_test.m:
tests/accumulator/disj.m:
tests/accumulator/func.m:
tests/accumulator/heuristic.m:
tests/accumulator/highorder.m:
tests/accumulator/identity.m:
tests/accumulator/inter.m:
tests/accumulator/nonrec.m:
tests/accumulator/out_to_in.m:
tests/accumulator/qsort.m:
tests/accumulator/simple.m:
tests/accumulator/split.m:
tests/accumulator/swap.m:
tests/benchmarks/cqueens.m:
tests/benchmarks/crypt.m:
tests/benchmarks/deriv.m:
tests/benchmarks/deriv2.m:
tests/benchmarks/nrev.m:
tests/benchmarks/poly.m:
tests/benchmarks/primes.m:
tests/benchmarks/qsort.m:
tests/benchmarks/query.m:
tests/benchmarks/tak.m:
tests/debugger/interactive.m:
tests/declarative_debugger/Mercury.options:
tests/declarative_debugger/io_read_bug.m:
tests/declarative_debugger/queens.exp:
tests/declarative_debugger/queens.m:
tests/dppd/imperative_solve_impl.m:
tests/dppd/map_impl.m:
tests/dppd/max_length_impl.m:
tests/dppd/sum.m:
tests/dppd/upto_sum_impl.m:
tests/par_conj/dep_par_21.m:
tests/tabling/seq.m:
tests/term/dds3_14.m:
tests/term/mmatrix.m:
tests/term/money.m:
tests/term/occur.m:
tests/term/pl4_5_2.m:
tests/term/queens.m:
tests/typeclasses/inference_test.m:
tests/typeclasses/inference_test_2.m:
tests/valid/lazy_list.m:
tests/warnings/duplicate_const.m:
    Replace calls to "is" with unifications. In many places,
    bring programming style up to date.
2020-08-21 10:42:37 +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
Zoltan Somogyi
6554ef7daa Replace "is" with "=".
Estimated hours taken: 2
Branches: main

Replace "is" with "=".
Add field names where relevant.
Replace integers with counters where relevant.
2003-05-26 09:01:46 +00:00
Zoltan Somogyi
7b6c3fb3a6 Make these files conform to our coding conventions by putting predicate
Estimated hours taken: 0.2
Branches: main

tests/benchmarks/*.m:
	Make these files conform to our coding conventions by putting predicate
	declarations immediately before predicates.
2002-09-06 06:01:58 +00:00
Simon Taylor
9a66109519 Add module qualifiers on calls to odd' and even', to avoid
Estimated hours taken: 0.1
Branches: main

tests/benchmarks/poly.m:
tests/benchmarks/crypt.m:
	Add module qualifiers on calls to `odd' and `even', to avoid
	ambiguities with the versions in the standard library.
2002-03-15 07:28:30 +00:00
Zoltan Somogyi
385008fc04 Instead of a :- include_module declaration for printlist, include
Estimated hours taken: 0.1

tests/benchmarks/*.m:
	Instead of a :- include_module declaration for printlist, include
	the body of the printlist module in each benchmark that needs it.
	This makes it much easier to use individual benchmarks as test cases
	for code generation and optimization changes.

tests/benchmarks/printlist.m:
	Remove this no longer needed file.
2000-09-18 01:24:21 +00:00
Zoltan Somogyi
3fa17815ab Move the import of print_list.m from the interface to the
Estimated hours taken: 0.2

tests/benchmarks/*.m:
	Move the import of print_list.m from the interface to the
	implementation, where it belongs, to avoid warnings.
1998-09-15 07:17:39 +00:00
Fergus Henderson
aa8c66345d Fix unique mode errors in the benchmark tests.
Estimated hours taken: 0.25

Fix unique mode errors in the benchmark tests.

tests/benchmarks/{cqueens,crypt,queens,query}.m:
	Change the determinism of main from `multi' to the new `cc_multi'.

tests/benchmarks/{deriv,deriv2}.m:
	Rearrange the code slightly to move the I/O
	out of the condition of an if-then-else.
1996-01-15 16:34:46 +00:00
Fergus Henderson
e8a39797b6 Modify the nondet/semidet benchmarks so that `main' is either
tests/benchmarks:
	Modify the nondet/semidet benchmarks so that `main' is either
	det or multidet.
	Remove files `Entry' and `NP_Entry' since they are no longer
	needed.
1995-06-27 14:26:17 +00:00
Fergus Henderson
c3d6d6511a Rename *.nl as *.m.
tests/benchmarks:
	Rename *.nl as *.m.
	Move arithmetic.nl to tests/general.
1995-04-22 16:56:09 +00:00