mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 13:23:47 +00:00
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.
14 lines
213 B
Mathematica
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)]).
|