(define-library (csc linker-test) (import (scheme base) (only (csc format) sprintf) (only (csc hash-map) alist->map hash-bytevector make-comparer make-map) (only (csc list) all) (only (csc testing) assert-equal test) (csc linker)) (begin (define compare-globals (make-comparer (lambda (x) (hash-bytevector (string->utf8 (sprintf "{}" x)))) (lambda (x y) (cond ((equal? x y) 0) ((stringmap compare-globals '(((global cons (csc based)) . 10))))))))