racket/collects/tests/scriblib/bibtex.rkt
Matthew Flatt 5352d670c4 generalize #%variable-reference' and add variable-reference-constant?'
Use the new functions to make the expansion of keyword applications
to known procedure work  with mutation.
2011-08-09 16:33:17 -06:00

25 lines
689 B
Racket

#lang racket
(require racket/runtime-path
tests/eli-tester
scriblib/bibtex)
(define-runtime-path example.bib "example.bib")
(test
(let ()
(define-bibtex-cite example.bib
~cite-id citet-id generate-bibliography-id)
(~cite-id "cryptoeprint:2000:067")
(~cite-id "Tobin-Hochstadt:2011fk")
(~cite-id "cryptoeprint:2000:067" "Tobin-Hochstadt:2011fk")
(~cite-id "cryptoeprint:2000:067 Tobin-Hochstadt:2011fk")
(citet-id "cryptoeprint:2000:067")
(citet-id "Tobin-Hochstadt:2011fk")
(citet-id "Tobin-Hochstadt:2011fk" "Tobin-Hochstadt:2011fk")
(citet-id "Tobin-Hochstadt:2011fk Tobin-Hochstadt:2011fk")
(generate-bibliography-id)))