Commit Graph

3 Commits

Author SHA1 Message Date
Zoltan Somogyi
a69fc36be0 Update some tests' programming style. 2020-10-05 17:53:05 +11: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
bc22bbc1ba Specify the behaviour of finalisers and mutable initial value expressions
Estimated hours taken: 1
Branches: main

Specify the behaviour of finalisers and mutable initial value expressions
w.r.t to exceptions.

doc/reference_manual.texi:
	Specify what happens if a finaliser terminates with an uncaught
	exception.

	Specify the order of initialisation for mutables w.r.t initialise
	declarations.

	Specify what happens if a mutable initial value expression
	terminates with an uncaught exception.

tests/hard_coded/Mmakefile:
	Add the new test cases.

tests/hard_coded/final_excp.{m,exp}:
	Test the behaviour of finalisers that throw exceptions.

test/hard_coded/mutable_init_order.{m,exp}:
	Test that mutables are initialised in the correct order relative
	to initialise declarations.

tests/hard_coded/mutabel_excp.{m,exp}:
	Test the behaviour of mutable initial value expressions that
	throw exceptions.
2007-02-11 03:28:04 +00:00