Commit Graph

3 Commits

Author SHA1 Message Date
Julien Fischer
f89054f165 Use error($pred, "...") in more spots in the standard library.
Also, throw software_error/1 exceptions rather than directly throwing strings
in a few spots.

Undo special Ralph-style formatting.

library/*.:
    As above.

tests/hard_coded/array2d_from_array.exp:
tests/hard_coded/array2d.exp:
tests/hard_coded/test_injection.exp:
   Update to conform with the above change.
2019-10-15 17:48:36 +11:00
Zoltan Somogyi
b293bd999d Replace __ with . as the module qualifier everywhere.
Estimated hours taken: 1
Branches: main

library/*.m:
	Replace __ with . as the module qualifier everywhere.

tests/hard_coded/test_injection.exp:
	Replace __ with . as the module qualifier in expected exceptions.
2006-03-07 22:23:58 +00:00
Mark Brown
e67f75a131 Add a test case for the injection library module.
Estimated hours taken: 3
Branches: main

tests/hard_coded/Mmakefile:
tests/hard_coded/test_injection.exp:
tests/hard_coded/test_injection.m:
	Add a test case for the injection library module.

library/injection.m:
	injection.merge and injection.overlay do not actually throw exceptions
	like the documentation says.  The reason is that the underlying map
	implementation does not throw exceptions in these circumstances, but
	silently accepts the error.  We therefore continue to do the same,
	but update the documentation to reflect this.

	Note that getting map.m to throw exceptions in these circumstances
	would probably be the better solution.
2005-07-23 16:04:25 +00:00