Skip to content

Commit

Permalink
more test cases for #590
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Oct 25, 2016
1 parent 63c1943 commit 61e0ea3
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 5 deletions.
4 changes: 2 additions & 2 deletions resource/tests/export.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Background:

### BibLaTeX cookie-cutter ###

@test-cluster-1 @127 @201 @219 @253 @268 @288 @294 @302 @308 @309 @310 @326 @327 @351 @376 @389 @bblt-0 @bblt @485 @515 @573
@test-cluster-1 @127 @201 @219 @253 @268 @288 @294 @302 @308 @309 @310 @326 @327 @351 @376 @389 @bblt-0 @bblt @485 @515 @573 @590
Scenario Outline: BibLaTeX Export
And I import <references> references from 'export/<file>.json'
Then a library export using 'Better BibLaTeX' should match 'export/<file>.biblatex'

Examples:
| file | references |
| EDTF dates in BibLaTeX #590 | 1 |
| EDTF dates in BibLaTeX #590 | 3 |
| transliteration for citekey #580 | 1 |
| CSL status = biblatex pubstate #573 | 1 |
| Title case of latex greek text on biblatex export #564 | 2 |
Expand Down
32 changes: 30 additions & 2 deletions test/fixtures/export/EDTF dates in BibLaTeX #590.biblatex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@article{barker_2016_turkey,
@article{barker1_2016_turkey,
abstract = {Religious fundamentalism is a powerful force in Turkey where the military has a long history of intervening in politics to ensure the nation remains secular.},
author = {Barker, Anne},
author = {Barker1, Anne},
date = {2016-07-18T20:26:06},
journaltitle = {ABC News},
langid = {australian},
Expand All @@ -11,3 +11,31 @@
url = {http://www.abc.net.au/news/2016-07-18/turkey-coup-attempt-shows-division-over-wish-for-islamist-rule/7639292},
urldate = {2016-07-24}
}

@article{barker2_2016_turkey,
abstract = {Religious fundamentalism is a powerful force in Turkey where the military has a long history of intervening in politics to ensure the nation remains secular.},
author = {Barker2, Anne},
date = {2016-07-18T20:26:06+10:00},
journaltitle = {ABC News},
langid = {australian},
note = {Actual: 2016-07-18T20:26:06+10:00},
rights = {http://www.abc.net.au/conditions.htm\#UseOfContent},
timestamp = {2015-02-24 12:14:36 +0100},
title = {Turkey Divided between Secular and {{Islamist}} Rule},
url = {http://www.abc.net.au/news/2016-07-18/turkey-coup-attempt-shows-division-over-wish-for-islamist-rule/7639292},
urldate = {2016-07-24}
}

@article{barker3_2016_turkey,
abstract = {Religious fundamentalism is a powerful force in Turkey where the military has a long history of intervening in politics to ensure the nation remains secular.},
author = {Barker3, Anne},
date = {2016-07-18T20:26:06Z},
journaltitle = {ABC News},
langid = {australian},
note = {Actual: 2016-07-18T20:26:06+10:00},
rights = {http://www.abc.net.au/conditions.htm\#UseOfContent},
timestamp = {2015-02-24 12:14:36 +0100},
title = {Turkey Divided between Secular and {{Islamist}} Rule},
url = {http://www.abc.net.au/news/2016-07-18/turkey-coup-attempt-shows-division-over-wish-for-islamist-rule/7639292},
urldate = {2016-07-24}
}
54 changes: 53 additions & 1 deletion test/fixtures/export/EDTF dates in BibLaTeX #590.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,59 @@
"creators": [
{
"creatorType": "author",
"lastName": "Barker",
"lastName": "Barker1",
"firstName": "Anne"
}
],
"attachments": [],
"notes": [],
"itemID": 377,
"seeAlso": [],
"__citekey__": "barker_2016_turkey"
},
{
"itemType": "newspaperArticle",
"tags": [],
"relations": {},
"url": "http://www.abc.net.au/news/2016-07-18/turkey-coup-attempt-shows-division-over-wish-for-islamist-rule/7639292",
"rights": "http://www.abc.net.au/conditions.htm#UseOfContent",
"publicationTitle": "ABC News",
"date": "2016-07-18T20:26:06+10:00",
"extra": "Actual: 2016-07-18T20:26:06+10:00",
"accessDate": "2016-07-24 12:35:37",
"language": "en-AU",
"abstractNote": "Religious fundamentalism is a powerful force in Turkey where the military has a long history of intervening in politics to ensure the nation remains secular.",
"title": "Turkey divided between secular and Islamist rule",
"creators": [
{
"creatorType": "author",
"lastName": "Barker2",
"firstName": "Anne"
}
],
"attachments": [],
"notes": [],
"itemID": 377,
"seeAlso": [],
"__citekey__": "barker_2016_turkey"
},
{
"itemType": "newspaperArticle",
"tags": [],
"relations": {},
"url": "http://www.abc.net.au/news/2016-07-18/turkey-coup-attempt-shows-division-over-wish-for-islamist-rule/7639292",
"rights": "http://www.abc.net.au/conditions.htm#UseOfContent",
"publicationTitle": "ABC News",
"date": "2016-07-18T20:26:06Z",
"extra": "Actual: 2016-07-18T20:26:06+10:00",
"accessDate": "2016-07-24 12:35:37",
"language": "en-AU",
"abstractNote": "Religious fundamentalism is a powerful force in Turkey where the military has a long history of intervening in politics to ensure the nation remains secular.",
"title": "Turkey divided between secular and Islamist rule",
"creators": [
{
"creatorType": "author",
"lastName": "Barker3",
"firstName": "Anne"
}
],
Expand Down

0 comments on commit 61e0ea3

Please sign in to comment.