Files
mercury/tests/general/map_corresponding.exp
Ralph Becket b523b5df82 Additions to list.m and require.m.
Estimated hours taken: 2
Branches: main

Additions to list.m and require.m.

library/require.m:
	Added func_error/1, a func version of the error/1 pred.

library/list.m:
	Added cc_multi modes to list__fold[lr]/4 preds.
	Added list__map_corresponding/3 and list__map_corresponding3/4.

tests/general/map_corresponding.m:
	Added test cases for list__map_corresponding/3 and
	list__map_corresponding3/4.

tests/general/map_corresponding.exp:
	Expected output for above test cases.

tests/general/Mmakefile:
	Include the new test case.

NEWS:
	Recorded new additions.
2001-12-14 01:06:02 +00:00

15 lines
828 B
Plaintext

list__map_corresponding/3: failed as expected on inputs [] [1]
list__map_corresponding/3: failed as expected on inputs [1] []
list__map_corresponding/3: succeeded correctly on inputs [] []
list__map_corresponding/3: succeeded correctly on inputs [1, 2, 3] [4, 5, 6]
list__map_corresponding3/4: failed as expected on inputs [] [] [1]
list__map_corresponding3/4: failed as expected on inputs [] [1] []
list__map_corresponding3/4: failed as expected on inputs [] [1] [1]
list__map_corresponding3/4: failed as expected on inputs [1] [] []
list__map_corresponding3/4: failed as expected on inputs [1] [] [1]
list__map_corresponding3/4: failed as expected on inputs [1] [1] []
list__map_corresponding3/4: succeeded correctly on inputs [] [] []
list__map_corresponding3/4: succeeded correctly on inputs [1, 2, 3] [4, 5, 6] [7, 8, 9]