Files
mercury/tests/hard_coded/array_all_tf.exp
Julien Fischer 6ffec8a4af Add all_{true,false}/2 and is_empty/1 to array and version_array.
library/array.m:
library/version_array.m:
	Add the above predicates.

NEWS:
	Announce the new predicates.

tests/hard_coded/Mmakefile:
tests/hard_coded/array_all_tf.{m,exp}:
	Test the new predicates.

tests/hard_coded/version_array_test.{m,exp}:
	Extend this test case to cover the new predicates.
2013-07-22 15:45:23 +10:00

7 lines
305 B
Plaintext

TEST: all_true(even, array([2, 4, 6, 8, 10])): PASSED
TEST: all_false(odd, array([2, 4, 6, 8, 10])): PASSED
TEST: all_true(even, array([])): PASSED
TEST: all_false(even, array([])): PASSED
TEST: not all_true(odd, array([2, 4, 6, 8, 10])): PASSED
TEST: not all_false(even, array([2, 4, 6, 8, 10])): PASSED