Sha256: 223ca9103cee524cc1ceee358a84d6831486e8f593962d5108eae6fdbdc829e3
Contents?: true
Size: 1.37 KB
Versions: 13
Compression:
Stored size: 1.37 KB
Contents
# coding: utf-8 require_relative "../../citation_helper" describe "citealp* macro with numeric style" do let(:options) { { "bibliography-tex-style" => "numeric", "bibliography-database" => "database.bib" } } it "formats a single citation" do expect(formatted_citation("citealp*:[Erdos65]", options: options)). to eq "1" end it "formats a grouped citation" do expect(formatted_citation("citealp*:[Erdos65]+[Einstein35]", options: options)). to eq "1, 2" end it "formats a single citation with a prefix" do expect(formatted_citation("citealp*:[Erdos65, prefix=see]", options: options)). to eq "see 1" end it "formats a single citation with a suffix" do expect(formatted_citation("citealp*:[Erdos65, suffix=new edition]", options: options)). to eq "1, new edition" end it "formats a single citation with both a prefix and a suffix" do expect(formatted_citation("citealp*:[Erdos65, prefix=see, suffix=new edition]", options: options)). to eq "see 1, new edition" end it "formats a single citation with a standard locator" do expect(formatted_citation("citealp*:[Erdos65, page=41-43]", options: options)). to eq "1, pp. 41-43" end it "formats a single citation with a custom locator" do expect(formatted_citation("citealp*:[Erdos65, locator=somewhere]", options: options)). to eq "1, somewhere" end end
Version data entries
13 entries across 13 versions & 1 rubygems