mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 20:33:55 +00:00
tests/hard_coded/: A directory for tests that will not run under NU-prolog. The expected outcome (`*.exp') files are hand written, and compared with output from the modules. qual_*_test.m: Tests to ensure module qualification of predicates works correctly. qual_adv_test.m also tests that module names are used correctly to distinguish between predicates with similar/same names. qual_*_test.exp: Expected output of above tests.
16 lines
310 B
Mathematica
16 lines
310 B
Mathematica
:- module qual_basic_test2.
|
|
|
|
% A test to ensure a qualified predicate is parsed correctly.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
|
|
:- pred qual_basic_test2:main(io__state, io__state).
|
|
:- mode qual_basic_test2:main(di, uo) is det.
|
|
|
|
:- implementation.
|
|
|
|
qual_basic_test2:main --> io:io__write_string("Gotcha!\n").
|
|
|