mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 20:33:55 +00:00
Estimated hours taken: 0.5
Branches: main
tests/hard_coded/sub-modules/include_parent.m:
tests/hard_coded/sub-modules/separate2.m:
tests/hard_coded/sub-modules/use_submodule.m:
tests/hard_coded/sub-modules/use_submodule.exp:
Update the test so that it also tests a separate sub-module whose
filename isn't fully qualified.
32 lines
739 B
Mathematica
32 lines
739 B
Mathematica
% Test that we can use both nested and separate sub-modules.
|
|
|
|
:- module use_submodule.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
|
|
:- pred main(io__state::di, io__state::uo) is det.
|
|
|
|
:- implementation.
|
|
|
|
:- import_module include_parent.
|
|
:- import_module include_parent__nested.
|
|
:- import_module include_parent__separate.
|
|
:- import_module include_parent__separate__nested.
|
|
:- use_module include_parent__separate2.
|
|
:- use_module include_parent__separate2__nested.
|
|
|
|
main -->
|
|
include_parent__hello,
|
|
include_parent__nested__hello,
|
|
nested__hello,
|
|
include_parent__separate__hello,
|
|
separate__hello,
|
|
include_parent__separate__hello2,
|
|
separate__hello2,
|
|
hello2,
|
|
hello3,
|
|
include_parent__separate2__hello,
|
|
include_parent__separate2__nested__hello.
|