Skip to content

Commit

Permalink
Add failing example for #83
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Sep 1, 2024
1 parent 4f877ff commit 5a04e57
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions features/choose.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Feature: Rendering CSL choose nodes
As a hacker of cite processors
I want to render citation items
Using CSL choose nodes


Scenario: Inherited delimiter
Given the following style node:
"""
<group delimiter=", ">
<choose>
<if type="article-journal article-magazine" match="none">
<text variable="genre"/>
<text variable="publisher"/>
<text variable="publisher-place"/>
</if>
</choose>
</group>
"""
When I render the following citation item as "html":
| type | book |
| genre | Nature |
| publisher | William Collins |
| publisher-place | Glasgow |
Then the result should be: Nature, William Collins, Glasgow

0 comments on commit 5a04e57

Please sign in to comment.