Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move citation-number test that depend on off-spec behavior to off-spec folder #64

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
Rename tests to match contents
These test were modified in the past so they no longer match their names
Jason-Abbott committed Jun 11, 2023
commit d062420bf5bb33b0704f8e002ac3a6e5180c0cdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
>>==== MODE ====>>
bibliography
<<==== MODE ====<<

>>==== RESULT ====>>
<div class="csl-bib-body">
<div class="csl-entry">[1] Book 001</div>
<div class="csl-entry">[2] Book 002</div>
<div class="csl-entry">[3] Book 003</div>
<div class="csl-entry">[4] Book 004</div>
<div class="csl-entry">[5] Book 005</div>
<div class="csl-entry">[6] Book 006</div>
<div class="csl-entry">[7] Book 007</div>
<div class="csl-entry">[8] Book 008</div>
</div>
<<==== RESULT ====<<

>>==== CITATION-ITEMS ====>>
[
[
{
"id": "ITEM-1"
},
{
"id": "ITEM-2"
},
{
"id": "ITEM-3"
},
{
"id": "ITEM-4"
},
{
"id": "ITEM-5"
},
{
"id": "ITEM-6"
},
{
"id": "ITEM-7"
},
{
"id": "ITEM-8"
}
]
]
<<==== CITATION-ITEMS ====<<

>>==== CSL ====>>
<style
xmlns="http://purl.org/net/xbiblio/csl"
class="note"
version="1.0">
<info>
<id />
<title />
<updated>2009-08-10T04:49:00+09:00</updated>
</info>
<citation>
<layout>
<text value="bogus"/>
</layout>
</citation>
<bibliography>
<sort>
<key variable="title"/>
<key variable="citation-number" sort="ascending"/>
</sort>
<layout>
<text variable="citation-number" prefix="[" suffix="] "/>
<text variable="title" />
</layout>
</bibliography>
</style>
<<==== CSL ====<<

>>==== INPUT ====>>
[
{
"id": "ITEM-1",
"title": "Book 001",
"type": "book"
},
{
"id": "ITEM-2",
"title": "Book 003",
"type": "book"
},
{
"id": "ITEM-3",
"title": "Book 004",
"type": "book"
},
{
"id": "ITEM-4",
"title": "Book 006",
"type": "book"
},
{
"id": "ITEM-5",
"title": "Book 002",
"type": "book"
},
{
"id": "ITEM-6",
"title": "Book 005",
"type": "book"
},
{
"id": "ITEM-7",
"title": "Book 007",
"type": "book"
},
{
"id": "ITEM-8",
"title": "Book 008",
"type": "book"
}
]
<<==== INPUT ====<<



>>===== VERSION =====>>
1.0
<<===== VERSION =====<<

Original file line number Diff line number Diff line change
@@ -1,52 +1,20 @@
>>==== MODE ====>>
>>===== MODE =====>>
bibliography
<<==== MODE ====<<
<<===== MODE =====<<

>>==== RESULT ====>>


>>===== RESULT =====>>
<div class="csl-bib-body">
<div class="csl-entry">[1] Book 001</div>
<div class="csl-entry">[2] Book 002</div>
<div class="csl-entry">[3] Book 003</div>
<div class="csl-entry">[4] Book 004</div>
<div class="csl-entry">[5] Book 005</div>
<div class="csl-entry">[6] Book 006</div>
<div class="csl-entry">[7] Book 007</div>
<div class="csl-entry">[8] Book 008</div>
<div class="csl-entry">[4] Aaaa</div>
<div class="csl-entry">[3] Bbbb</div>
<div class="csl-entry">[2] Xxxx</div>
<div class="csl-entry">[1] Zzzz</div>
</div>
<<==== RESULT ====<<
<<===== RESULT =====<<

>>==== CITATION-ITEMS ====>>
[
[
{
"id": "ITEM-1"
},
{
"id": "ITEM-2"
},
{
"id": "ITEM-3"
},
{
"id": "ITEM-4"
},
{
"id": "ITEM-5"
},
{
"id": "ITEM-6"
},
{
"id": "ITEM-7"
},
{
"id": "ITEM-8"
}
]
]
<<==== CITATION-ITEMS ====<<

>>==== CSL ====>>
>>===== CSL =====>>
<style
xmlns="http://purl.org/net/xbiblio/csl"
class="note"
@@ -56,69 +24,52 @@ bibliography
<title />
<updated>2009-08-10T04:49:00+09:00</updated>
</info>
<macro name="citation-number">
<text variable="citation-number"/>
</macro>
<citation>
<layout>
<text value="bogus"/>
</layout>
</citation>
<bibliography>
<sort>
<key variable="title"/>
<key variable="citation-number" sort="ascending"/>
<key variable="title" sort="ascending"/>
<key variable="citation-number" sort="descending"/>
</sort>
<layout>
<text variable="citation-number" prefix="[" suffix="] "/>
<text variable="title" />
</layout>
</bibliography>
</style>
<<==== CSL ====<<
<<===== CSL =====<<


>>==== INPUT ====>>
>>===== INPUT =====>>
[
{
"id": "ITEM-1",
"title": "Book 001",
"type": "book"
},
{
"id": "ITEM-2",
"title": "Book 003",
"type": "book"
},
{
"id": "ITEM-3",
"title": "Book 004",
"type": "book"
},
{
"id": "ITEM-4",
"title": "Book 006",
"type": "book"
},
{
"id": "ITEM-5",
"title": "Book 002",
"type": "book"
},
{
"id": "ITEM-6",
"title": "Book 005",
"type": "book"
},
{
"id": "ITEM-7",
"title": "Book 007",
"type": "book"
},
{
"id": "ITEM-8",
"title": "Book 008",
"type": "book"
}
{
"id": "item-1",
"title": "Aaaa",
"type": "book"
},
{
"id": "item-3",
"title": "Bbbb",
"type": "book"
},
{
"id": "item-4",
"title": "Zzzz",
"type": "book"
},
{
"id": "item-5",
"title": "Xxxx",
"type": "book"
}
]
<<==== INPUT ====<<

<<===== INPUT =====<<


>>===== VERSION =====>>

This file was deleted.