Sha256: 6d199fea517f26643791d7d5a2eb58b4ca5381234d84b3428581dcf87ab53911
Contents?: true
Size: 685 Bytes
Versions: 3
Compression:
Stored size: 685 Bytes
Contents
require File.expand_path('../../lib/bibtex.rb', __FILE__) require 'rubygems' require 'minitest/unit' require 'minitest/autorun' class TestComment < MiniTest::Unit::TestCase def setup end def teardown end def test_explicit bib = BibTeX::Bibliography.open('test/bib/05_comment.bib', :debug => true) refute_nil(bib) assert_equal(BibTeX::Bibliography, bib.class) assert_equal(2, bib.data.length) assert_equal([BibTeX::Comment], bib.data.map(&:class).uniq) assert_equal(' A comment can contain pretty much anything ', bib.data[0].content) assert_equal("\n@string{ foo = \"bar\" }\n\n@string{ bar = \"foo\" }\n", bib.data[1].content) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bibtex-ruby-1.1.2 | test/test_comment.rb |
bibtex-ruby-1.1.1 | test/test_comment.rb |
bibtex-ruby-1.1.0 | test/test_comment.rb |