Files
mercury/tests/hard_coded/rbtree_count.exp
Julien Fischer 7f771cb245 Fix rbtree.count and rbtree.ucount.
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.
2026-02-20 13:40:40 +11:00

7 lines
127 B
Plaintext

count(Empty) = 0
count(Singleton) = 1
counter(ThreeElems) = 3
ucount(Empty) = 0
ucount(Singleton) = 1
ucounter(ThreeElems) = 3