Sha256: 1d1dd045ea49c058796971a4a298c28eed53a2dd74531c23aca05e819b4354a2

Contents?: true

Size: 1001 Bytes

Versions: 4

Compression:

Stored size: 1001 Bytes

Contents

Feature: position
  As a CSL cite processor hacker
  I want the test position_NearNoteFalse to pass

  @citation @position @citation-items
  Scenario: Near Note False
    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>
          <choose>
            <if position="near-note">
              <text value="Note is near!" />
            </if>
            <else>
              <text value="Note is not near." />
            </else>
          </choose>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"id":"ITEM-1","title":"Book A","type":"book"}]
    """
    When I cite the following items:
    """
    [[{"id":"ITEM-1","near-note":false}]]
    """
    Then the results should be:
      | Note is not near. |

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/position/NearNoteFalse.feature
citeproc-1.0.6 features/position/NearNoteFalse.feature
citeproc-1.0.5 features/position/NearNoteFalse.feature
citeproc-1.0.4 features/position/NearNoteFalse.feature