Files
mercury/tests/invalid/string_format_unknown.err_exp
Julien Fischer ae375664b9 Add some new utility predicates for use with streams.
Estimated hours taken: 2
Branches: main

Add some new utility predicates for use with streams.

library/stream.m:
	Add the predicate stream.format/5, an analogue of io.format,
	that writes formatted output using an arbitrary string writer.

	Add a predicate stream.ignore_whitespace/4 that can be used
	to skip past whitespace in a putback char reader stream.

library/Mercury.options:
	Don't warn about unknown format calls in the stream module.

	Unrelated change: remove a workaround that was put in place
	before the addition of the `--no-warn-obsolete' option.

compiler/format_call.m:
	Also analyse calls to stream.format/5.

tests/hard_coded/Mmakefile:
tests/hard_coded/stream_format.{m,exp}:
tests/hard_coded/stream_ignore_ws.{m,exp,data}:
	Test stream.format/5 and stream.ignore_whitespace/3.

tests/invalid/string_format_bad.{m,exp}:
tests/invalid/string_format_unknown.{m,exp}:
	Check that we emit messages for bad/unknown calls to stream.format/5.
2006-11-09 00:47:27 +00:00

21 lines
1.2 KiB
Plaintext

string_format_unknown.m:022: Unknown format string in call to
string_format_unknown.m:022: `string.format'/3.
string_format_unknown.m:024: Mismatched format and values in call to
string_format_unknown.m:024: `string.format'/3:
string_format_unknown.m:024: invalid conversion specifier.
string_format_unknown.m:027: Mismatched format and values in call to
string_format_unknown.m:027: `io.format'/4:
string_format_unknown.m:027: invalid conversion specifier.
string_format_unknown.m:028: Mismatched format and values in call to
string_format_unknown.m:028: `io.format'/5:
string_format_unknown.m:028: invalid conversion specifier.
string_format_unknown.m:029: Mismatched format and values in call to
string_format_unknown.m:029: `io.format'/4:
string_format_unknown.m:029: invalid conversion specifier.
string_format_unknown.m:039: Unknown format values in call to `io.format'/5.
string_format_unknown.m:040: Unknown format values in call to
string_format_unknown.m:040: `stream.format'/5.
string_format_unknown.m:045: Mismatched format and values in call to
string_format_unknown.m:045: `io.format'/5:
string_format_unknown.m:045: invalid conversion specifier.