Files
mercury/tests/general/array_test.exp
Andrew Bromage 85915ad88a The main purpose of this change is to rename array.m as bt_array.m, and
Estimated hours taken: 6

The main purpose of this change is to rename array.m as bt_array.m, and
uniq_array.m as array.m.  The interfaces of those two modules have grown
slightly so that they match a little more closely.  Details are in the
file NEWS.

The implementation of bt_array (formerly array) has been changed to use
a slightly more efficient implementation.

NEWS:
        Interface changes documented.

library/array.m:
library/bt_array.m:
        Changes mentioned above and detailed in the NEWS file.

library/uniq_array.m:
        Bereft of life and resting in peace.

library/io.m:
library/library.m:
library/std_util.m:
library/term.m:
compiler/base_type_layout.m:
runtime/deep_copy.c:
runtime/type_info.h:
        Minor changes to fix the special case of base_type_layout
        operations for arrays rather than uniq_arrays.

tests/hard_coded/write.exp:
tests/hard_coded/write.m:
        Test writing of arrays.

tests/general/array_test.exp:
tests/general/array_test.m:
        Test some array/bt_array operations.
1997-07-25 05:16:31 +00:00

22 lines
504 B
Plaintext

A0: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
AMax0: 9
AMin0: 0
ASize: 10
AMin1: 0
AMax1: 9
ABsearch: yes(3)
A1: [1, 2, 3, 4, 5, 6, 7, 8, 100, 10]
A2: [1, 2, 3, 4, 5, 6, 7, 8, 100, 10, 1000, 1000, 1000, 1000, 1000]
A3: [1, 2, 3, 4, 5, 6, 7, 8, 100, 10]
B0: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
BMax0: 9
BMin0: 0
BSize: 10
BMin1: 0
BMax1: 9
BBsearch: yes(3)
B1: [1, 2, 3, 4, 5, 6, 7, 8, 100, 10]
B2: [1, 2, 3, 4, 5, 6, 7, 8, 100, 10, 1000, 1000, 1000, 1000, 1000]
B3: [1, 2, 3, 4, 5, 6, 7, 8, 100, 10]
Results all match