mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 12:23:44 +00:00
Estimated hours taken: 0.25 tests/general/Mmakefile: tests/general/relation_test.m: tests/general/relation_test.exp: tests/hard_coded/Mmakefile: tests/hard_coded/relation_test.m: tests/hard_coded/relation_test.exp: Move the `relation_test' test case from the `general' directory to the `hard_coded' directory, since it doesn't work in Prolog.
61 lines
623 B
Plaintext
61 lines
623 B
Plaintext
Rel =
|
|
"a" - "b"
|
|
"b" - "c"
|
|
"c" - "d"
|
|
"l1" - "l2"
|
|
"l2" - "l3"
|
|
"l3" - "l1"
|
|
"x" - "x"
|
|
|
|
tc of Rel =
|
|
"a" - "b"
|
|
"a" - "c"
|
|
"a" - "d"
|
|
"b" - "c"
|
|
"b" - "d"
|
|
"c" - "d"
|
|
"l1" - "l1"
|
|
"l1" - "l2"
|
|
"l1" - "l3"
|
|
"l2" - "l1"
|
|
"l2" - "l2"
|
|
"l2" - "l3"
|
|
"l3" - "l1"
|
|
"l3" - "l2"
|
|
"l3" - "l3"
|
|
"x" - "x"
|
|
|
|
rtc of Rel =
|
|
"a" - "a"
|
|
"a" - "b"
|
|
"a" - "c"
|
|
"a" - "d"
|
|
"b" - "b"
|
|
"b" - "c"
|
|
"b" - "d"
|
|
"c" - "c"
|
|
"c" - "d"
|
|
"d" - "d"
|
|
"l1" - "l1"
|
|
"l1" - "l2"
|
|
"l1" - "l3"
|
|
"l2" - "l1"
|
|
"l2" - "l2"
|
|
"l2" - "l3"
|
|
"l3" - "l1"
|
|
"l3" - "l2"
|
|
"l3" - "l3"
|
|
"x" - "x"
|
|
|
|
Rel2 =
|
|
"a" - "a1"
|
|
"b" - "b1"
|
|
"c" - "c1"
|
|
"d" - "d1"
|
|
|
|
composition of Rel1 and Rel2 =
|
|
"a" - "b1"
|
|
"b" - "c1"
|
|
"c" - "d1"
|
|
|