Files
mercury/tests/general/string_format_test_2.m
Fergus Henderson 674d66cbad Fix a bug in string__format: it was not reporting an error
Estimated hours taken: 0.75

library/string.m:
	Fix a bug in string__format: it was not reporting an error
	in the case where the argument list had more elements
	than was appropriate for the format string.

tests/general/Mmakefile:
tests/general/string_format_test_2.m:
tests/general/string_format_test_2.exp:
tests/general/string_format_test_3.m:
tests/general/string_format_test_3.exp:
	Test cases for the above-mentioned bug fix.
1998-10-27 15:36:42 +00:00

14 lines
213 B
Mathematica

:- module string_format_test_2.
:- interface.
:- import_module io.
:- pred main(io__state::di, io__state::uo) is det.
:- implementation.
:- import_module list, string.
main --> io__format("foo\n", [i(42)]).