Files
mercury/tests/invalid/string_format_unknown.err_exp
Zoltan Somogyi f697c69d13 Improve specifier/polytype mismatch messages.
library/string.parse_util.m:
    When we find a mismatch between a format specifier char and the
    corresponding polytype, list the specifier chars that are applicable
    to the given polytype.

tests/invalid/string_format_bad.err_exp:
tests/invalid/string_format_unknown.err_exp:
    Update the expected mismatch messages.
2020-05-28 11:28:09 +10:00

34 lines
2.1 KiB
Plaintext

string_format_unknown.m:021: Unknown format string in call to
string_format_unknown.m:021: `string.format'/3.
string_format_unknown.m:023: Mismatched format and values in call to
string_format_unknown.m:023: `string.format'/3:
string_format_unknown.m:023: The first conversion specifier uses the
string_format_unknown.m:023: specifier character `d', but the corresponding
string_format_unknown.m:023: input is a string. The only specifier applicable
string_format_unknown.m:023: to strings is %s.
string_format_unknown.m:026: Mismatched format and values in call to
string_format_unknown.m:026: `io.format'/4:
string_format_unknown.m:026: The first conversion specifier uses the
string_format_unknown.m:026: specifier character `d', but the corresponding
string_format_unknown.m:026: input is a string. The only specifier applicable
string_format_unknown.m:026: to strings is %s.
string_format_unknown.m:027: Mismatched format and values in call to
string_format_unknown.m:027: `io.format'/5:
string_format_unknown.m:027: The first conversion specifier uses the
string_format_unknown.m:027: specifier character `d', but the corresponding
string_format_unknown.m:027: input is a string. The only specifier applicable
string_format_unknown.m:027: to strings is %s.
string_format_unknown.m:028: Mismatched format and values in call to
string_format_unknown.m:028: `io.format'/4:
string_format_unknown.m:028: The first conversion specifier uses the unknown
string_format_unknown.m:028: specifier character `w'.
string_format_unknown.m:038: Unknown format values in call to `io.format'/5.
string_format_unknown.m:039: Unknown format values in call to
string_format_unknown.m:039: `stream.string_writer.format'/5.
string_format_unknown.m:044: Mismatched format and values in call to
string_format_unknown.m:044: `io.format'/5:
string_format_unknown.m:044: The first conversion specifier uses the
string_format_unknown.m:044: specifier character `d', but the corresponding
string_format_unknown.m:044: input is a float. The specifiers applicable to
string_format_unknown.m:044: floats are %f, %e, %E, %g and %G.