Sha256: 70a0c3e83373fc9aaf23eefdeada1840b11b27c310282ba7fc66dc6785cd5352

Contents?: true

Size: 1.31 KB

Versions: 86

Compression:

Stored size: 1.31 KB

Contents

Feature: BibTeX Braced Strings
	As a hacker who works with bibliographies
	I want to be able to parse BibTeX files containing string definitions using braced expressions
	Because applications such as BibDesk produce that format

	@string
	Scenario: A simple string assignment
		When I parse the following file:
		"""
		@string{ foo = {foo} }
		"""
		Then my bibliography should contain 1 string
		
	@string @replacement
	Scenario: A BibTeX file with string assignments
		When I parse the following file:
		"""
		Simple strings:
		@string{ foo1 = {foo} }
		@string{ foo2 = {foo}}
		@string{ foo3 ={foo}}
		@string{foo4={foo}}
		@string{ foo5 = {"foo" bar} }
		@string{ foo6 = {"foo" bar{"}} }
		
		Compound strings:
		@string{ foo7 = foo1 }
		@string{ foo8 = foo1 # {bar} }
		@string{ foo9 = {foo } # {bar} }
		
		"""
		Then my bibliography should contain 9 strings
		And my bibliography should contain these strings:
			| value            |
			| foo              |
			| foo              |
			| foo              |
			| foo              |
			| "foo" bar        |
			| "foo" bar{"}     |
			| foo1             |
			| foo1 # "bar"     |
			| "foo " # "bar"   |
		When I replace and join all strings in my bibliography
		Then the string "foo7" should be "foo"
		And the string "foo8" should be "foobar"
		And the string "foo9" should be "foo bar"
		

Version data entries

86 entries across 86 versions & 3 rubygems

Version Path
bibtex-ruby-6.1.0 features/issues/braced_strings.feature
bibtex-ruby-6.0.0 features/issues/braced_strings.feature
bibtex-ruby-5.1.6 features/issues/braced_strings.feature
bibtex-ruby-5.1.5 features/issues/braced_strings.feature
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/bibtex-ruby-5.1.4/features/issues/braced_strings.feature
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/bibtex-ruby-5.1.4/features/issues/braced_strings.feature
bibtex-ruby-5.1.4 features/issues/braced_strings.feature
bibtex-ruby-5.1.3 features/issues/braced_strings.feature
bibtex-ruby-5.1.2 features/issues/braced_strings.feature
bibtex-ruby-5.1.1 features/issues/braced_strings.feature
bibtex-ruby-5.1.0 features/issues/braced_strings.feature
bibtex-ruby-5.0.1 features/issues/braced_strings.feature
bibtex-ruby-5.0.0 features/issues/braced_strings.feature
bibtex-ruby-4.4.7 features/issues/braced_strings.feature
bibtex-ruby-4.4.6 features/issues/braced_strings.feature
bibtex-ruby-4.4.5 features/issues/braced_strings.feature
bibtex_to_scrapbox-0.2.0 gems/gems/bibtex-ruby-4.4.4/features/issues/braced_strings.feature
bibtex_to_scrapbox-0.1.0 gems/gems/bibtex-ruby-4.4.4/features/issues/braced_strings.feature
bibtex-ruby-4.4.4 features/issues/braced_strings.feature
bibtex-ruby-4.4.3 features/issues/braced_strings.feature