summaryrefslogtreecommitdiffstats
path: root/testdata/parsing.bib
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2016-02-21 22:21:06 -0500
committerThibaut Horel <thibaut.horel@gmail.com>2016-02-21 22:21:06 -0500
commit99e5114a8b22ce692fb6cbf26b0b11908dde69e8 (patch)
treea4e24d38735634b7acad5b5af2493ab0495f66fb /testdata/parsing.bib
parent86cddf333ee9a80a4ea0a68814face6a32ced48b (diff)
downloadbibtex-99e5114a8b22ce692fb6cbf26b0b11908dde69e8.tar.gz
Add a few tests
Diffstat (limited to 'testdata/parsing.bib')
-rw-r--r--testdata/parsing.bib53
1 files changed, 53 insertions, 0 deletions
diff --git a/testdata/parsing.bib b/testdata/parsing.bib
new file mode 100644
index 0000000..21b32bb
--- /dev/null
+++ b/testdata/parsing.bib
@@ -0,0 +1,53 @@
+identifier can contain weird things
+
+@ string ( @f0/0\:0 = "foo" )
+@string { foo = "foo" # @f0/0\:0 }
+
+@ preamble(
+ foo
+)
+@preamble { foo }
+
+entry can be empty
+
+@misc{}
+
+key can be empty
+
+@misc(,)
+
+key can contain weird things. The following three lines are only defining one
+entry
+
+@misc(
+@misc{author="test"},
+)
+
+@misc{ ()cr@zy{,}
+
+Now testing entries with unknown type.
+
+@cr@zy {key1,
+ year = 2010,
+ title = @f0/0\:0 # "jou{"}rn@l" # { {j}ou#"n@{l} } # @f0/0\:0
+ author = "Jœhn
+
+ Nash",
+}
+
+@comment{ This is a comment
+
+ field names can contain weird things, including at-signs but probably not
+ a good idea. The following line starts a new entry, even though few
+ parsers will catch it
+ @article{key2,
+ @my_field = "test",
+ year = "2010",
+}
+
+we are now outside of an entry again, balancedness does not matter
+}
+} @ comment
+
+The next line defines an entry of type "comment<at>article"
+@ commment@article {key3,}