Skip to content

Commit

Permalink
Additional test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Mar 4, 2016
1 parent 7880cce commit 16beab3
Show file tree
Hide file tree
Showing 6 changed files with 888 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/fixtures/local/affix_FlipflopParens.txt
Expand Up @@ -107,7 +107,7 @@ citation
>>===== CSL =====>>
<style
xmlns="http://purl.org/net/xbiblio/csl"
class="note"
class="in-text"
version="1.0">
<info>
<id />
Expand Down
95 changes: 95 additions & 0 deletions tests/fixtures/local/affix_FlipflopParensLayout.txt
@@ -0,0 +1,95 @@
>>===== MODE =====>>
citation
<<===== MODE =====<<



>>===== RESULT =====>>
???
<<===== RESULT =====<<


>>===== CITATIONS =====>>
[
[
{
"citationID": "CITATION-1",
"citationItems": [
{
"id": "ITEM-1",
"prefix": "Comment. (Inside parens "
},
{
"id": "ITEM-2",
"prefix": "and",
"suffix": ", ending parens)."
}
],
"properties": {
"noteIndex": 1
}
},
[],
[]
]
]
<<===== CITATIONS =====<<


>>===== CSL =====>>
<style
xmlns="http://purl.org/net/xbiblio/csl"
class="in-text"
version="1.0">
<info>
<id />
<title />
<updated>2009-08-10T04:49:00+09:00</updated>
</info>
<macro name="author">
<names variable="author">
<name form="short" />
</names>
</macro>
<citation>
<layout delimiter="; " prefix="(" suffix=")">
<group delimiter=" ">
<group delimiter=", ">
<text macro="author" prefix='(' suffix=')'/>
<date variable="issued" date-parts="year" form="text"/>
</group>
</group>
</layout>
</citation>
</style>
<<===== CSL =====<<


>>===== INPUT =====>>
[
{
"author": [
{
"family": "Smith",
"given": "Stephen"
}
],
"id": "ITEM-1",
"title": "Stephen's Book",
"issued": { "date-parts": [[2000]]},
"type": "book"
},
{
"author": [
{
"family": "Jones",
"given": "John"
}
],
"id": "ITEM-2",
"title": "John's Book",
"issued": { "date-parts": [[2001]]},
"type": "book"
}
]
<<===== INPUT =====<<
111 changes: 111 additions & 0 deletions tests/fixtures/local/bugreports_LabelFail.txt
@@ -0,0 +1,111 @@
>>===== MODE =====>>
citation
<<===== MODE =====<<



>>===== RESULT =====>>
???
<<===== RESULT =====<<


>>===== CITATIONS =====>>
[
[
{
"citationID": "CITATION-1",
"citationItems": [
{
"id": "ITEM-1"
}
],
"properties": {
"noteIndex": 1
}
},
[],
[]
]
]
<<===== CITATIONS =====<<


>>===== CSL =====>>
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only">
<info>
<title>Substitute Failure</title>
<id>http://www.zotero.org/styles/substitute</id>
<link href="http://www.zotero.org/styles/substitute" rel="self"/>
<author>
<name>Sebastian Karcher</name>
</author>
<updated>2016-02-03T17:41:02+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<macro name="author">
<names variable="author">
<name/>
<label form="short" prefix=", "/>
<substitute>
<choose>
<if type="book">
<names variable="editor"/>
</if>
</choose>
<text variable="title"/>
</substitute>
</names>
</macro>
<citation et-al-min="3" et-al-use-first="1" disambiguate-add-names="true">
<layout delimiter="; " suffix=".">
<text macro="author"/>
</layout>
</citation>
</style>
<<===== CSL =====<<


>>===== INPUT =====>>
[
{
"type": "book",
"multi": {
"main": {},
"_keys": {}
},
"id": "ITEM-1",
"title": "Beyond varieties of capitalism : Conflict, contradiction, and complementarities in the European economy",
"publisher": "Oxford University Press",
"ISBN": "978-0-19-920648-3",
"shortTitle": "Beyond varieties of capitalism",
"language": "en",
"editor": [
{
"family": "Hancke",
"given": "Bob",
"multi": {
"_key": {}
}
},
{
"family": "Rhodes",
"given": "Martin",
"multi": {
"_key": {}
}
},
{
"family": "Thatcher",
"given": "Mark",
"multi": {
"_key": {}
}
}
],
"issued": {
"raw": "2007"
}
}
]
<<===== INPUT =====<<

0 comments on commit 16beab3

Please sign in to comment.