mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 09:53:36 +00:00
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.
24 lines
430 B
Mathematica
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).
|
|
|