Skip to content

Commit

Permalink
Add fixtures migrated from official test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Mar 14, 2016
1 parent b6237de commit aa8c760
Show file tree
Hide file tree
Showing 8 changed files with 747 additions and 0 deletions.
63 changes: 63 additions & 0 deletions tests/fixtures/local/name_Asian.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
>>===== MODE =====>>
citation
<<===== MODE =====<<



>>===== RESULT =====>>
Miyamoto Musashi
<<===== RESULT =====<<


>>===== CSL =====>>
<style
xmlns="http://purl.org/net/xbiblio/csl"
class="note"
version="1.1mlz1">
<info>
<id />
<title />
<updated>2009-08-10T04:49:00+09:00</updated>
</info>
<locale xml:lang="ja">
<style-options name-as-sort-order="ja" name-never-short="ja"/>
</locale>
<citation>
<layout>
<names variable="author">
<name />
</names>
</layout>
</citation>
</style>
<<===== CSL =====<<


>>===== INPUT =====>>
[
{
"author": [
{
"family": "Miyamoto",
"given": "Musashi",
"multi": {
"_key": {},
"main": "ja"
}
}
],
"id": "simple-sticky-name-1",
"issued": {
"date-parts": [
[
"1645",
"12",
"27"
]
]
},
"title": "A Book of Five Rings",
"type": "book"
}
]
<<===== INPUT =====<<
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
]/*
* Copyright (c) 2009 and 2010 Frank G. Bennett, Jr. All Rights
* Reserved.
*
* The contents of this file are subject to the Common Public
* Attribution License Version 1.0 (the “License”); you may not use
* this file except in compliance with the License. You may obtain a
* copy of the License at:
*
* http://bitbucket.org/fbennett/citeproc-js/src/tip/LICENSE.
*
* The License is based on the Mozilla Public License Version 1.1 but
* Sections 14 and 15 have been added to cover use of software over a
* computer network and provide for limited attribution for the
* Original Developer. In addition, Exhibit A has been modified to be
* consistent with Exhibit B.
*
* Software distributed under the License is distributed on an “AS IS”
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is the citation formatting software known as
* "citeproc-js" (an implementation of the Citation Style Language
* [CSL]), including the original test fixtures and software located
* under the ./std subdirectory of the distribution archive.
*
* The Original Developer is not the Initial Developer and is
* __________. If left blank, the Original Developer is the Initial
* Developer.
*
* The Initial Developer of the Original Code is Frank G. Bennett,
* Jr. All portions of the code written by Frank G. Bennett, Jr. are
* Copyright (c) 2009 and 2010 Frank G. Bennett, Jr. All Rights Reserved.
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Affero General Public License (the [AGPLv3]
* License), in which case the provisions of [AGPLv3] License are
* applicable instead of those above. If you wish to allow use of your
* version of this file only under the terms of the [AGPLv3] License
* and not to allow others to use your version of this file under the
* CPAL, indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by the
* [AGPLv3] License. If you do not delete the provisions above, a
* recipient may use your version of this file under either the CPAL
* or the [AGPLv3] License.”
*/

>>===== MODE =====>>
citation
<<===== MODE =====<<



>>===== RESULT =====>>
ЧАЙКОВСКИЙ, П.И., WINKLE, R. VAN, 我妻栄, THUCYDIDES, C., III, TOKUGAWA I., et al.
<<===== RESULT =====<<


>>===== CSL =====>>
<style
xmlns="http://purl.org/net/xbiblio/csl"
class="note"
version="1.1mlz1">
<info>
<id />
<title />
<updated>2009-08-10T04:49:00+09:00</updated>
</info>
<locale xml:lang="ja">
<style-options name-as-sort-order="ja" name-never-short="ja"/>
</locale>
<citation
et-al-min="6"
et-al-use-first="5">
<layout delimiter="; ">
<names variable="author">
<name delimiter=", " initialize-with="." name-as-sort-order="all" sort-separator=", ">
<name-part name="family" text-case="uppercase" />
</name>
</names>
</layout>
</citation>
</style>
<<===== CSL =====<<


>>===== INPUT =====>>
[
{
"author": [
{
"family": "Чайковский",
"given": "Пётр Ильич"
},
{
"family": "Winkle",
"given": "Rip",
"non-dropping-particle": "van"
},
{
"family": "我妻",
"given": "栄",
"multi": {
"_key": {},
"main": "ja"
}
},
{
"family": "Thucydides",
"given": "Carl",
"suffix": "III"
},
{
"family": "Tokugawa",
"given": "Ieyasu",
"multi": {
"_key": {},
"main": "ja"
}
},
{
"given": "Prince"
}
],
"id": "item-1",
"issued": {
"date-parts": [
[
"2000"
]
]
},
"title": "Our Story",
"type": "book"
}
]
<<===== INPUT =====<<
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
>>===== MODE =====>>
citation
<<===== MODE =====<<



>>===== RESULT =====>>
ЧАЙКОВСКИЙ, П.И., R. VAN WINKLE, 我妻栄, C. THUCYDIDES III, Š. ČESNEK, A. MALÍKOVÁ, TOKUGAWA I., et al.
<<===== RESULT =====<<


>>===== CSL =====>>
<style
xmlns="http://purl.org/net/xbiblio/csl"
class="note"
version="1.1mlz1">
<info>
<id />
<title />
<updated>2009-08-10T04:49:00+09:00</updated>
</info>
<locale xml:lang="ja">
<style-options name-as-sort-order="ja" name-never-short="ja"/>
</locale>
<citation
et-al-min="8"
et-al-use-first="7">
<layout delimiter="; ">
<names variable="author">
<name delimiter=", " initialize-with="." name-as-sort-order="first" sort-separator=", ">
<name-part name="family" text-case="uppercase" />
</name>
</names>
</layout>
</citation>
</style>
<<===== CSL =====<<


>>===== INPUT =====>>
[
{
"author": [
{
"family": "Чайковский",
"given": "Пётр Ильич"
},
{
"family": "Winkle",
"given": "Rip",
"non-dropping-particle": "van"
},
{
"family": "我妻",
"given": "栄",
"multi": {
"_key": {},
"main": "ja"
}
},
{
"family": "Thucydides",
"given": "Carl",
"suffix": "III"
},
{
"family": "Česnek",
"given": "Šťěpán"
},
{
"family": "Malíková",
"given": "Andrea"
},
{
"family": "Tokugawa",
"given": "Ieyasu",
"multi": {
"_key": {},
"main": "ja-alalc97"
}
},
{
"given": "Prince",
"static-ordering": false
}
],
"id": "item-1",
"issued": {
"date-parts": [
[
"2000"
]
]
},
"title": "Our Story",
"type": "book"
}
]
<<===== INPUT =====<<
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
>>===== MODE =====>>
citation
<<===== MODE =====<<



>>===== RESULT =====>>
П.И. ЧАЙКОВСКИЙ, R. VAN WINKLE, 我妻栄, C. THUCYDIDES III, TOKUGAWA I., et al.
<<===== RESULT =====<<


>>===== CSL =====>>
<style
xmlns="http://purl.org/net/xbiblio/csl"
class="note"
version="1.1mlz1">
<info>
<id />
<title />
<updated>2009-08-10T04:49:00+09:00</updated>
</info>
<locale xml:lang="ja">
<style-options name-as-sort-order="ja" name-never-short="ja"/>
</locale>
<citation
et-al-min="6"
et-al-use-first="5">
<layout delimiter="; ">
<names variable="author">
<name delimiter=", " initialize-with=".">
<name-part name="family" text-case="uppercase" />
</name>
</names>
</layout>
</citation>
</style>
<<===== CSL =====<<


>>===== INPUT =====>>
[
{
"author": [
{
"family": "Чайковский",
"given": "Пётр Ильич"
},
{
"family": "Winkle",
"given": "Rip",
"non-dropping-particle": "van"
},
{
"family": "我妻",
"given": "栄",
"multi": {
"_key": {},
"main": "ja"
}
},
{
"family": "Thucydides",
"given": "Carl",
"suffix": "III"
},
{
"family": "Tokugawa",
"given": "Ieyasu",
"multi": {
"_key": {},
"main": "ja-alalc97"
}
},
{
"given": "Prince"
}
],
"id": "item-1",
"issued": {
"date-parts": [
[
"2000"
]
]
},
"title": "Our Story",
"type": "book"
}
]
<<===== INPUT =====<<
Loading

0 comments on commit aa8c760

Please sign in to comment.