Files
mercury/tests/hard_coded/string_fold_ilseq.exp2
Peter Wang edfbeb1d9a Define behaviour of string.foldl etc on ill-formed sequences.
library/string.m:
    As above.

tests/hard_coded/Mmakefile:
tests/hard_coded/string_fold_ilseq.exp:
tests/hard_coded/string_fold_ilseq.exp2:
tests/hard_coded/string_fold_ilseq.m:
    Add test case.
2019-10-24 09:22:13 +11:00

6 lines
79 B
Plaintext

string.foldl:
a b c 😀 0xd83d x y z
string.foldr:
z y x 0xd83d 😀 c b a