Files
mercury/tests/invalid/comparison.m
Zoltan Somogyi 3dc4babb24 Update the style of more test cases.
And update expected output files for changes in line numbers.
2021-07-27 13:29:46 +10:00

25 lines
536 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
:- module comparison.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
:- import_module int.
main(!IO) :-
( if test(1.0, 2.0) then
io.write_string("ok\n", !IO)
else
io.write_string("not ok\n", !IO)
).
:- pred test(float::in, float::in) is semidet.
test(A, B) :-
A < B.