-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first baby steps towards #68 : adding more tests and registering the …
…current state of affairs in 'approved' reference files by way of `ApprovalTests` use in the test rig. # Conflicts: # QiqqaSystemTester/data/fixtures/bibtex/b0rked-0008.bib
- Loading branch information
1 parent
5019762
commit 9788540
Showing
32 changed files
with
81,245 additions
and
534 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
79,735 changes: 79,735 additions & 0 deletions
79,735
...ef-output/Sample.TestBibTeX.Test_Parser_On_Original_Qiqqa_TestSet_SampleBib.approved.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Survive typing mistakes like this one: a missing open brace | ||
@appnote{???, | ||
title={Relays and switches: Contact Arc Phenomenon}, | ||
publisher=Tyco Electronics}, | ||
year={???},author={???}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Survive keying bugs like this one: international character(s) in a key | ||
@book{mitrinović1996handbook | ||
, title = {Handbook of number theory} | ||
, author = {Mitrinovi\\'c, D.S. and S\'andor, J. and Crstici, B.} | ||
, volume = {1} | ||
, year = {1996} | ||
, publisher = {Kluwer Academic Pub} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Survive keying bugs like this one: international character(s) in a key | ||
@article{呂錦山2009台灣地區國際商港永續經營與發展之研究, | ||
title={台灣地區國際商港永續經營與發展之研究}, | ||
author={呂錦山 and 桑國忠}, | ||
year={2009} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Survive keying bugs like this one: whitespace in the key | ||
@article{whelan 2010 effective czas reakcji latency rt | ||
, author = {Whelan, Robert} | ||
, title = {Effective analysis of reaction time data} | ||
, journal = {The Psychological Record} | ||
, year = {2010} | ||
, volume = {58} | ||
, number = {3} | ||
, pages = {9} | ||
} | ||
|
||
and then here's the corrected one: | ||
@article{whelan2010 | ||
, author = {Whelan, Robert} | ||
, title = {Effective analysis of reaction time data} | ||
, journal = {The Psychological Record} | ||
, year = {2010} | ||
, volume = {58} | ||
, number = {3} | ||
, pages = {9} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Survive TeX math in values: | ||
@comment { BIBTEX_AUTO - GS } | ||
@article{hermans2012exact, | ||
title={Exact and near-miss clone detection in spreadsheets}, | ||
author={Hermans, Felienne}, | ||
journal={TinyToCS$\}$}, | ||
volume={1}, | ||
year={2012} | ||
} | ||
bibtexParse error: Token mismatch, expected "}" at index 173, found "$},\n volume=" | ||
-------------------------------------------------- | ||
and here's the corrected item: | ||
@comment { BIBTEX_AUTO - GS } | ||
@article{hermans2012exact, | ||
title={Exact and near-miss clone detection in spreadsheets}, | ||
author={Hermans, Felienne}, | ||
journal={TinyToCS}, | ||
volume={1}, | ||
year={2012} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Survive missing key in a record: | ||
@specsheet{ | ||
title={DHM3UM80: High Voltage Fast Recovery Diode}, | ||
manufacturer={Hitachi} | ||
} | ||
|
||
|
||
and here's the corrected item: | ||
@specsheet{DHM3UM80, | ||
title={DHM3UM80: High Voltage Fast Recovery Diode}, | ||
manufacturer={Hitachi} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
More nutty TeX Math that isn't -- probably some auto-converter b0rked along the line to us getting this record off the IntarWebz: | ||
@comment { BIBTEX_AUTO - GS } | ||
@article{abraham2014fully, | ||
title={Fully Dynamic All-Pairs Shortest Paths: Breaking the O (n) Barrier$\}$$\}$}, | ||
author={Abraham, Ittai and Chechik, Shiri and Talwar, Kunal}, | ||
journal={Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2014)$\}$}, | ||
volume={28}, | ||
pages={1--16}, | ||
year={2014}, | ||
publisher={Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik$\}$} | ||
} | ||
bibtexParse error: Token mismatch, expected "}" at index 136, found "$$\\}$},\n aut" | ||
-------------------------------------------------- | ||
and corrected: | ||
@comment { BIBTEX_AUTO - GS } | ||
@article{abraham2014fully, | ||
title={Fully Dynamic All-Pairs Shortest Paths: Breaking the O(n) Barrier}, | ||
author={Abraham, Ittai and Chechik, Shiri and Talwar, Kunal}, | ||
journal={Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2014)}, | ||
volume={28}, | ||
pages={1--16}, | ||
year={2014}, | ||
publisher={Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
Survive multiple errors in a single bib 'record file': | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@book{mitrinović1996handbook | ||
, title = {Handbook of number theory} | ||
, author = {Mitrinovi\\'c, D.S. and S\'andor, J. and Crstici, B.} | ||
, volume = {1} | ||
, year = {1996} | ||
, publisher = {Kluwer Academic Pub} | ||
} | ||
|
||
|
||
bibtexParse error: Token mismatch, expected "," at index 15, found "ć1996handbook" | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@datasheet = HT16K33 : RAM Mapping 16*8 LED Controller Driver with keyscan | ||
bibtexParse error: Token mismatch, expected "{" at index 11, found "= HT16K33 : R" | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@delete | ||
bibtexParse error: Runaway key | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@article{whelan 2010 effective czas reakcji latency rt | ||
, author = {Whelan, Robert} | ||
, title = {Effective analysis of reaction time data} | ||
, journal = {The Psychological Record} | ||
, year = {2010} | ||
, volume = {58} | ||
, number = {3} | ||
, pages = {9} | ||
} | ||
|
||
bibtexParse error: Token mismatch, expected "," at index 16, found "2010 effectiv" | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@delete{} | ||
|
||
bibtexParse error: Token mismatch, expected "," at index 8, found "}" | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@delete{delete | ||
} | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@empty = delete? | ||
bibtexParse error: Token mismatch, expected "{" at index 7, found "= delete?" | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@blank? | ||
bibtexParse error: Runaway key | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@blank{ | ||
} | ||
bibtexParse error: Token mismatch, expected "," at index 8, found "}" | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@delete | ||
bibtexParse error: Runaway key | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@comment { BIBTEX_AUTO - GS } | ||
@article{hermans2012exact, | ||
title={Exact and near-miss clone detection in spreadsheets}, | ||
author={Hermans, Felienne}, | ||
journal={TinyToCS$\}$}, | ||
volume={1}, | ||
year={2012} | ||
} | ||
bibtexParse error: Token mismatch, expected "}" at index 173, found "$},\n volume=" | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@book{hopcroft2001automata, | ||
title={Introduction to automata theory, languages, and computation}, | ||
author={Hopcroft, John E and Motwani, Rajeev and Ullman, Jeffrey D}, | ||
year={2001}, | ||
publisher=Addison-Wesley} | ||
} | ||
bibtexParse error: Value expected:Addison-Wesley} | ||
} | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@specsheet{ | ||
title={DHM3UM80: High Voltage Fast Recovery Diode}, | ||
manufacturer={Hitachi} | ||
} | ||
bibtexParse error: Token mismatch, expected "," at index 18, found "={DHM3UM80: H" | ||
--------------------------------------------------------------------------- | ||
BIBTEX PARSE ERROR: | ||
@comment { BIBTEX_AUTO - GS } | ||
@article{abraham2014fully, | ||
title={Fully Dynamic All-Pairs Shortest Paths: Breaking the O (n) Barrier$\}$$\}$}, | ||
author={Abraham, Ittai and Chechik, Shiri and Talwar, Kunal}, | ||
journal={Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2014)$\}$}, | ||
volume={28}, | ||
pages={1--16}, | ||
year={2014}, | ||
publisher={Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik$\}$} | ||
} | ||
bibtexParse error: Token mismatch, expected "}" at index 136, found "$$\\}$},\n aut" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Recognize string definitions: | ||
@string{anch-ie = {Angew.~Chem. Int.~Ed.}} | ||
@string{cup = {Cambridge University Press}} | ||
@string{dtv = {Deutscher Taschenbuch-Verlag}} | ||
@string{hup = {Harvard University Press}} | ||
@string{jams = {J.~Amer. Math. Soc.}} | ||
@string{jchph = {J.~Chem. Phys.}} | ||
@string{jomch = {J.~Organomet. Chem.}} | ||
@string{pup = {Princeton University Press}} | ||
and thier usage: | ||
@article{herrmann, | ||
author = {Herrmann, Wolfgang A. and {\"O}fele, Karl and Schneider, | ||
Sabine K. and Herdtweck, Eberhardt and Hoffmann, Stephan D.}, | ||
title = {A carbocyclic carbene as an efficient catalyst ligand for {C--C} | ||
coupling reactions}, | ||
journaltitle = anch-ie, | ||
date = 2006, | ||
volume = 45, | ||
number = 23, | ||
pages = {3859-3862}, | ||
indextitle = {Carbocyclic carbene as an efficient catalyst, A}, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
Deal correctly with concatenation (and macros): | ||
@Book{nietzsche:ksa1, | ||
langid = {german}, | ||
sorttitle = {Werke-01-000}, | ||
indexsorttitle = {Samtliche Werke I}, | ||
author = {Nietzsche, Friedrich}, | ||
bookauthor = {Nietzsche, Friedrich}, | ||
editor = {Colli, Giorgio and Montinari, Mazzino}, | ||
indextitle = {S{\"a}mtliche Werke I}, | ||
title = {Die Geburt der Trag{\"o}die. Unzeitgem{\"a}{\ss}e Betrachtungen I--IV. | ||
Nachgelassene Schriften 1870--1973}, | ||
shorttitle = {S{\"a}mtliche Werke I}, | ||
maintitle = {S{\"a}mtliche Werke}, | ||
mainsubtitle = {Kritische Studienausgabe}, | ||
volume = {1}, | ||
edition = {2}, | ||
publisher = dtv # { and Walter de Gruyter}, | ||
location = {M{\"u}nchen and Berlin and New York}, | ||
year = {1988}, | ||
annotation = {A single volume from the critical edition of Nietzsche's works. This | ||
\texttt{book} entry explicitly refers to the first volume only. Note the | ||
\texttt{title} and \texttt{maintitle} fields. Also note the \texttt{sorttitle} | ||
field. We want this entry to be listed after the entry | ||
referring to the entire edition} | ||
} | ||
|
||
|
||
From the May 2002 issue of "IEEE Transactions on Communications", | ||
page 697, reference #12. | ||
@inproceedings{IEEEexample:confwithadddays, | ||
author = "M. S. Yee and L. Hanzo", | ||
title = "Radial Basis Function Decision Feedback Equaliser | ||
Assisted Burst-by-burst Adaptive Modulation", | ||
booktitle = "Proc. {IEEE} Globecom '99", | ||
address = "Rio de Janeiro, Brazil", | ||
month = dec # " 5--9,", | ||
year = "1999", | ||
pages = "2183-2187" | ||
} | ||
|
||
From the March 2002 issue of "IEEE Transactions on Mechatronics", | ||
page 21, reference #8. | ||
@article{IEEEexample:articledualmonths, | ||
author = "Y. Okada and K. Dejima and T. Ohishi", | ||
title = "Analysis and Comparison of {PM} Synchronous Motor and | ||
Induction Motor Type Magnetic Bearings", | ||
journal = IEEE_J_IA, | ||
volume = "31", | ||
month = sep # "/" # oct, | ||
year = "1995", | ||
pages = "1047-1053" | ||
} | ||
|
||
@periodical{IEEEexample:periodical, | ||
title = IEEE_M_PCOM # ", Special Issue on Wireless {ATM}", | ||
volume = "3", | ||
month = aug, | ||
year = "1996", | ||
key = "IEEE" | ||
} | ||
|
Oops, something went wrong.