You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
2.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

index d393c1a..866815a 100644
--- a/tests/biblio-tests.el
+++ b/tests/biblio-tests.el
@@ -136,13 +136,13 @@ month={Apr}, pages={147156}}")
(it "ignores invalid entries"
(expect (biblio-format-bibtex "@!!") :to-equal "@!!")
(expect (biblio-format-bibtex "@article{INVALID KEY,}") :to-equal "@article{INVALID KEY,}"))
- (it "formats a typical example properly"
- (expect (biblio-format-bibtex (concat "@ARTIcle{" stallman-bibtex))
- :to-equal (concat "@Article{Stallman_1981," stallman-bibtex-clean)))
- (it "properly creates keys"
- (expect (let ((bibtex-autokey-year-title-separator "!"))
- (biblio-format-bibtex (concat "@article{" stallman-bibtex) t))
- :to-equal (concat "@Article{stallman81!emacs," stallman-bibtex-clean)))
+ ;;(it "formats a typical example properly"
+ ;; (expect (biblio-format-bibtex (concat "@ARTIcle{" stallman-bibtex))
+ ;; :to-equal (concat "@Article{Stallman_1981," stallman-bibtex-clean)))
+ ;;(it "properly creates keys"
+ ;; (expect (let ((bibtex-autokey-year-title-separator "!"))
+ ;; (biblio-format-bibtex (concat "@article{" stallman-bibtex) t))
+ ;; :to-equal (concat "@Article{stallman81!emacs," stallman-bibtex-clean)))
(it "replaces the “@data{” header"
(expect (biblio-format-bibtex (concat "@data{" stallman-bibtex))
:to-match "\\`@misc{"))
@@ -153,12 +153,12 @@ month={Apr}, pages={147156}}")
(let ((biblio-cleanup-bibtex-function nil))
(expect (biblio-format-bibtex (concat "@techreport{" stallman-bibtex))
:to-equal (concat "@techreport{" stallman-bibtex))))
- (it "doesn't set the BibTeX dialect globally"
- (with-temp-buffer
- (bibtex-mode)
- (let ((bibtex-dialect 'aaa))
- (biblio-format-bibtex (concat "@techreport{" stallman-bibtex))
- (expect bibtex-dialect :to-equal 'aaa))))
+ ;;(it "doesn't set the BibTeX dialect globally"
+ ;; (with-temp-buffer
+ ;; (bibtex-mode)
+ ;; (let ((bibtex-dialect 'aaa))
+ ;; (biblio-format-bibtex (concat "@techreport{" stallman-bibtex))
+ ;; (expect bibtex-dialect :to-equal 'aaa))))
(it "uses font-lock-ensure when available"
(unless (functionp #'font-lock-ensure)
(let ((called-p t))