Files
mercury/tests/hard_coded/array_test.m
Simon Taylor 67bcaf3817 Remove the bogus `array' constructor from the insts for arrays.
Estimated hours taken: 0.5
Branches: main

library/array.m:
library/array2d.m:
library/svarray.m:
	Remove the bogus `array' constructor from the insts for arrays.
	Comment out mode declarations that are now duplicates.

tests/hard_coded/Mmakefile:
tests/hard_coded/array_test.{m,exp}:
	Test case.
2007-02-27 02:12:37 +00:00

24 lines
430 B
Mathematica

:- module array_test.
:- interface.
:- import_module array, bool, io.
:- pred main(io::di, io::uo) is det.
:- pred test(array(bool)::in(uniq_array(bound(yes))),
array(bool)::in(uniq_array(bound(yes)))) is semidet.
:- pred test2(array(bool)::in(uniq_array(bound(no))),
array(bool)::in(uniq_array(bound(yes)))) is semidet.
:- implementation.
main(!IO) :-
io.write_string("succeeded\n", !IO).
test(X, X).
test2(X, X).