Sha256: 94c92e369fd33f258c84b3b11708909c6d816eb16d95f4b9e557ca96b8f264d3
Contents?: true
Size: 729 Bytes
Versions: 3
Compression:
Stored size: 729 Bytes
Contents
require File.expand_path('../../lib/bibtex.rb', __FILE__) require 'rubygems' require 'minitest/unit' require 'minitest/autorun' class TestPreamble < MiniTest::Unit::TestCase def setup end def teardown end def test_simple bib = BibTeX::Bibliography.open('test/bib/06_preamble.bib', :debug => true, :strict => false) refute_nil(bib) assert_equal(BibTeX::Bibliography, bib.class) assert_equal(4, bib.data.length) assert_equal([BibTeX::Preamble,BibTeX::String], bib.data.map(&:class).uniq) assert_equal(["This bibliography was created \\today"], bib.data[0].value) assert_equal(["Bib\\TeX"], bib.data[1].value) assert_equal(["Maintained by ",:maintainer], bib.data[3].value) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bibtex-ruby-1.1.2 | test/test_preamble.rb |
bibtex-ruby-1.1.1 | test/test_preamble.rb |
bibtex-ruby-1.1.0 | test/test_preamble.rb |