Commit Graph

7 Commits

Author SHA1 Message Date
Zoltan Somogyi
10b7a9edd0 Fix some warnings in some tests. 2021-06-27 18:03:55 +10:00
Julien Fischer
1f6d83692a Update programming style in tests/hard_coded.
tests/hard_coded/*.m:
    Update programming style, unless doing so would change
    the meaning of the test, in particular:

    - use '.' as a module qualifier in place of '__'
    - use {write,print}_line where appropriate
    - use if-then-else in place of C -> T ; E
    - use state variables in place of DCGs

tests/hard_coded/dir_test.m:
    Document what the expected outputs correspond to.

    Use a uniform module qualifier in the output.

tests/hard_coded/dir_test.exp*:
    Conform to the above change.
2021-01-07 13:58:12 +11:00
Zoltan Somogyi
d704a883f8 Misc style cleanups. 2019-07-04 23:02:10 +02: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
Fergus Henderson
0a26fd6129 Rename time.m as benchmarking.m.
library/time.m:
library/benchmarking.m:
	Rename time.m as benchmarking.m.

library/library.m.in:
library/io.m:
tests/hard_coded/error_func.m:
	Change `import_module' declarations to import benchmarking.m
	instead of time.m.

NEWS:
	s/time.m/benchmarking.m/
1997-07-28 10:08:00 +00:00
Simon Taylor
2eab07e9a0 Changed the determinism of main/2 to cc_multi, since
Estimated hours taken: 0.001

tests/hard_coded/error_func.m
	Changed the determinism of main/2 to cc_multi, since
	it calls benchmark_det, which is now cc_multi.
1997-07-17 04:21:12 +00:00
Fergus Henderson
b2473d1eff When inlining calls, use the goalinfo from the body of
Estimated hours taken: 4

compiler/inlining.m:
	When inlining calls, use the goalinfo from the body of
	the callee rather than the goalinfo from the call.
	This avoids some bugs which resulted from mismatches
	between the goal and its goalinfo; for example, the
	old code could lead to nondet unifications, or to calls
	to error/1 that don't have instmap delta going to unreachable.

tests/hard_coded/Mmake:
tests/hard_coded/error_func.m:
tests/hard_coded/error_func.exp:
	Regression test for the above change.
1997-07-09 08:21:09 +00:00