jackfirth / rebellion

A collection of core libraries for Racket
https://pkgs.racket-lang.org/package/rebellion
Apache License 2.0
80 stars 16 forks source link

persistent-red-black-node-size: contract violation #510

Closed sorawee closed 2 years ago

sorawee commented 2 years ago
#lang racket
(require rebellion/base/comparator
         rebellion/collection/sorted-set)

(define *set* (sorted-set #:comparator real<=>))

(sorted-set-element-at-least
 (sorted-set-add *set* 47)
 63)

results in:

persistent-red-black-node-size: contract violation
  expected: persistent-red-black-node?
  given: 'black-leaf
jackfirth commented 2 years ago

This bug is fixed in #508 as far as I can tell.

jackfirth commented 2 years ago

Closed by #508.