mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 10:53:40 +00:00
tests/invalid/*.m:
Rename modules as mentioned above.
In two cases where the main module name is a Mercury keyword (to the
extent that Mercury has keywords), add a "test_" prefix to the
module name.
Reorganize the ho_default_func_2 test case. The original code
of this test had three modules, a parent and two children,
with the module being tested being one of the *child* modules
(ho_default_func_2.sub). This does not work; the .log file
from the successful execution of this test case showed that
there was no actual compilation involved; the test stopped
after invoking "mmc --generate-dependencies" on that child module.
The new version of this test makes that child module the main module,
and moves the relevant parts of the other two original modules
into a single new child module.
Rename ii_parent to instance_pc (pc being short for parent-child).
This test case still has the child module listed as the target
in Mmakefile, so it still does not progress past generating its
dependencies.
Rename the imported_mode test case as bad_exported_mode,
because this is what it was testing.
exported_mode.m was used both as the main module of a test,
and as a helper module in the imported_mode test (now renamed
to bad_exported_mode). Make a copy of it as a helper module
for bad_exported_mode.
Update all references to the moved modules.
General updates to programming style, such as
- replacing DCG notation with state var notation
- adding lines around vim modelines
- fixing indentation
- fixing grammar errors in comments
tests/hard_coded/Mmakefile:
tests/hard_coded/Mercury.options:
Update all references to the moved modules and/or moved lines.
45 lines
2.7 KiB
Plaintext
45 lines
2.7 KiB
Plaintext
string_format_bad.m:022: Mismatched format and values in call to function
|
|
string_format_bad.m:022: `string.format'/2:
|
|
string_format_bad.m:022: There is no first conversion specifier, but there is
|
|
string_format_bad.m:022: an input.
|
|
string_format_bad.m:024: Mismatched format and values in call to function
|
|
string_format_bad.m:024: `string.format'/2:
|
|
string_format_bad.m:024: The first conversion specifier uses the specifier
|
|
string_format_bad.m:024: character `d', but the corresponding input is a
|
|
string_format_bad.m:024: string. The only specifier applicable to strings is
|
|
string_format_bad.m:024: %s.
|
|
string_format_bad.m:027: Mismatched format and values in call to predicate
|
|
string_format_bad.m:027: `io.format'/4:
|
|
string_format_bad.m:027: The first conversion specifier uses the specifier
|
|
string_format_bad.m:027: character `d', but the corresponding input is a
|
|
string_format_bad.m:027: string. The only specifier applicable to strings is
|
|
string_format_bad.m:027: %s.
|
|
string_format_bad.m:028: Mismatched format and values in call to predicate
|
|
string_format_bad.m:028: `io.format'/5:
|
|
string_format_bad.m:028: The first conversion specifier uses the specifier
|
|
string_format_bad.m:028: character `d', but the corresponding input is a
|
|
string_format_bad.m:028: string. The only specifier applicable to strings is
|
|
string_format_bad.m:028: %s.
|
|
string_format_bad.m:029: Mismatched format and values in call to predicate
|
|
string_format_bad.m:029: `stream.string_writer.format'/5:
|
|
string_format_bad.m:029: The first conversion specifier uses the specifier
|
|
string_format_bad.m:029: character `d', but the corresponding input is a
|
|
string_format_bad.m:029: string. The only specifier applicable to strings is
|
|
string_format_bad.m:029: %s.
|
|
string_format_bad.m:030: Mismatched format and values in call to predicate
|
|
string_format_bad.m:030: `io.format'/4:
|
|
string_format_bad.m:030: The first conversion specifier uses the unknown
|
|
string_format_bad.m:030: specifier character `w'.
|
|
string_format_bad.m:039: Mismatched format and values in call to predicate
|
|
string_format_bad.m:039: `io.format'/5:
|
|
string_format_bad.m:039: The second conversion specifier uses the specifier
|
|
string_format_bad.m:039: character `f', but the corresponding input is an
|
|
string_format_bad.m:039: integer. The specifiers applicable to ints are %d,
|
|
string_format_bad.m:039: %i, %o, %x, %X, %u, and %p.
|
|
string_format_bad.m:044: Mismatched format and values in call to predicate
|
|
string_format_bad.m:044: `io.format'/5:
|
|
string_format_bad.m:044: The first conversion specifier uses the specifier
|
|
string_format_bad.m:044: character `d', but the corresponding input is a
|
|
string_format_bad.m:044: float. The specifiers applicable to floats are %f,
|
|
string_format_bad.m:044: %e, %E, %g and %G.
|