Commit a58c0d36 authored by User expired's avatar User expired
Browse files

test: More than 4 journal letters in citation key

parent fa2062c7
......@@ -98,6 +98,11 @@ testJournalLongName() {
assertEquals ':zp' "$(bib-keyinsert -s $fileOne | getkey)"
}
testJournalLetters() {
echo -e '@Article{,\nJournal = {Proc. Natl. Acad. Sci. U.S.A.},' > $fileOne
assertEquals ':pnasusa' "$(bib-keyinsert $fileOne | getkey)"
}
testJournalAmpersand() {
echo -e '@Article{,\nJournal = {Organic & Biomolecular Chemistry},' > $fileOne
assertEquals ':obc' "$(bib-keyinsert $fileOne | getkey)"
......
......@@ -71,6 +71,11 @@ testJournalLongName() {
assertEquals '__ZP' "$(bib-name -n -s $fileOne | getname)"
}
testJournalLetters() {
echo -e '@Article{,\nJournal = {Proc. Natl. Acad. Sci. U.S.A.},' > $fileOne
assertEquals '__PNASUSA' "$(bib-name -n $fileOne | getname)"
}
testJournalAmpersand() {
echo -e '@Article{,\nJournal = {Organic & Biomolecular Chemistry},' > $fileOne
assertEquals '__OBC' "$(bib-name -n $fileOne | getname)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment