Commit Graph

2 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
Ondrej Bojar
8cdce11f52 Added support for negation in conditions (run_time and compile_time) for trace
Estimated hours taken: 2

Added support for negation in conditions (run_time and compile_time) for trace
goals.

compiler/mercury_to_mercury.m:
    Output negated conditions.

compiler/ml_code_gen.m:
compiler/pragma_c_gen.m:
    Test for negated conditions at run time.

compiler/prog_data.m:
    Modified type definition for trace_expr/1 to include negation.

compiler/prog_io_goal.m:
    Parsing of negated expressions.

compiler/simplify.m:
    Compile-time evaluation of conditions with negation.

doc/reference_manual.texi:
    Announced negation. Fixed a copy-paste typo in description of run-time
    conditions.

tests/hard_coded/trace_goal_env_3.m:
    Added a simple test for negation.

tests/hard_coded/trace_goal_env_3.exp:
    Expected result if env-vars are not set.

tests/hard_coded/Mmakefile:
    Enabled trace_goal_env_3.

tests/invalid/trace_goal_env.m:
    Added a simple malformed trace goal condition.

tests/invalid/trace_goal_env.err_exp:
    Expected error message.

tests/invalid/Mmakefile:
    Enabled trace_goal_env for C-generating backends only.
2007-02-22 03:50:38 +00:00