Sha256: e2271f4a1fb589e6215cf6275328ccba16e4297ef1191c1a9a23166cdeada2d6

Contents?: true

Size: 1.17 KB

Versions: 4

Compression:

Stored size: 1.17 KB

Contents

Feature: group
  As a CSL cite processor hacker
  I want the test group_SuppressValueWithEmptySubgroup to pass

  @citation @group
  Scenario: Suppress Value With Empty Subgroup
    Given the following style:
    """
    <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 variable="title"/>
          <group prefix=", ">
             <text value="Disponible sur : " prefix=" "/>
             <group prefix="&lt; " suffix=" &gt;">
                <choose>
                   <if variable="DOI">
                      <text variable="DOI"/>
                   </if>
                   <else>
                      <text variable="URL"/>
                   </else>
                </choose>
             </group>
          </group>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"title":"His Anonymous Life","type":"book"}]
    """
    When I cite all items
    Then the result should be:
    """
    His Anonymous Life
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/group/SuppressValueWithEmptySubgroup.feature
citeproc-1.0.6 features/group/SuppressValueWithEmptySubgroup.feature
citeproc-1.0.5 features/group/SuppressValueWithEmptySubgroup.feature
citeproc-1.0.4 features/group/SuppressValueWithEmptySubgroup.feature