mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-24 22:04:13 +00:00
These were inadvertently broken by updates to programming style in
commit 185443d79.
library/rbree.m:
In the implementation of ucount, increment the count for the
current node.
tests/hard_coded/Mmakefile:
tests/hard_coded/rbtree_count.{m,exp}:
Add a regression test.
7 lines
127 B
Plaintext
7 lines
127 B
Plaintext
count(Empty) = 0
|
|
count(Singleton) = 1
|
|
counter(ThreeElems) = 3
|
|
ucount(Empty) = 0
|
|
ucount(Singleton) = 1
|
|
ucounter(ThreeElems) = 3
|