Sha256: d6edf03bf3bc82cd90d6c4741b65703b91be26656e2cd00de27c33bd2251f060
Contents?: true
Size: 1.86 KB
Versions: 17
Compression:
Stored size: 1.86 KB
Contents
Feature: Searching in BibTeX bibliographies As a hacker who writes academic papers I want to be able to search my bibliographies In order to find the references I need Scenario: Find entries in a simple bibliography Given the bibliography: """ @book{pickaxe, Address = {Raleigh, North Carolina}, Author = {Thomas, Dave, and Fowler, Chad, and Hunt, Andy}, Date-Added = {2010-08-05 09:54:07 +0200}, Date-Modified = {2010-08-05 10:07:01 +0200}, Keywords = {ruby}, Publisher = {The Pragmatic Bookshelf}, Series = {The Facets of Ruby}, Title = {Programming Ruby 1.9: The Pragmatic Programmer's Guide}, Year = {2009} } @article{a1, Keywords = {@book} } @book{dragon, Address = {Boston}, Author = {Aho, Alfred V., and Lam, Monica S., and Ullman, Jeffrey D.}, Booktitle = {Compilers: Principles, Techniques, and Tools}, Date-Added = {2010-08-05 09:57:15 +0200}, Date-Modified = {2010-08-05 10:06:32 +0200}, Edition = {second}, Keywords = {compiler, lex, yacc}, Publisher = {Addison Wesley}, Title = {Compilers: Principles, Techniques, and Tools}, Year = {2007} } """ When I search for "pickaxe" Then there should be exactly 1 match When I search for :pickaxe Then there should be exactly 1 match When I search for "camel" Then there should be exactly 0 matches When I search for "@book" Then there should be exactly 2 matches When I search for /@book/ Then there should be exactly 3 matches When I search for "@book[]" Then there should be exactly 2 matches When I search for "@book[year=2007]" Then there should be exactly 1 match When I search for "@book[year=2009, keywords=ruby]" Then there should be exactly 1 match When I search for "@book[year=2009, keywords=yacc]" Then there should be exactly 0 matches When I search for "@book, @article" Then there should be exactly 3 matches
Version data entries
17 entries across 17 versions & 1 rubygems