!RBIX 16846133056282117387 x M 1 n n x 10 __script__ i 37 5 7 0 64 47 49 1 1 15 99 7 2 65 49 3 2 13 99 12 7 4 12 7 5 12 65 12 49 6 4 15 49 4 0 15 2 11 I 6 I 0 I 0 I 0 n p 7 s 6 helper x 7 require x 6 BibTeX x 11 open_module x 15 __module_init__ M 1 n n x 6 BibTeX i 64 5 66 99 7 0 45 1 2 43 3 65 49 4 3 13 99 12 7 5 12 7 6 12 65 12 49 7 4 15 49 5 0 15 99 7 8 45 1 9 43 3 65 49 4 3 13 99 12 7 5 12 7 10 12 65 12 49 7 4 15 49 5 0 11 I 6 I 0 I 0 I 0 n p 11 x 11 ElementTest x 8 MiniTest n x 4 Spec x 10 open_class x 14 __class_init__ M 1 n n x 11 ElementTest i 13 5 66 5 7 0 64 56 1 47 50 2 1 11 I 3 I 0 I 0 I 0 n p 3 s 6 .parse M 1 p 2 x 9 for_block t n x 11 ElementTest i 44 5 7 0 64 56 1 47 50 2 1 15 5 7 3 64 56 4 47 50 2 1 15 5 7 5 64 56 6 47 50 2 1 15 5 7 7 64 56 8 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 9 s 23 accepts a BibTeX string M 1 p 2 x 9 for_block t n x 11 ElementTest i 19 45 0 1 7 2 64 49 3 1 49 4 0 7 5 80 49 6 2 11 I 4 I 0 I 0 I 0 I -2 p 7 x 7 Element n s 19 @misc{x,},@misc{y,} x 5 parse x 6 length x 2 == x 7 must_be p 3 I 0 I a I 13 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x 2 it s 18 accepts an Element M 1 p 2 x 9 for_block t n x 11 ElementTest i 46 45 0 1 45 2 3 13 71 4 47 9 27 47 49 5 0 13 7 6 64 47 49 7 1 15 8 33 7 6 64 49 4 1 49 8 1 49 9 0 7 10 79 49 11 2 11 I 5 I 0 I 0 I 0 I -2 p 12 x 7 Element n x 7 Comment n x 3 new x 8 allocate s 4 blah x 10 initialize x 5 parse x 6 length x 2 == x 7 must_be p 3 I 0 I e I 2e x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 s 35 accepts a Hash and returns an Entry M 1 p 2 x 9 for_block t n x 11 ElementTest i 37 45 0 1 44 43 2 79 49 3 1 13 7 4 7 5 49 6 2 15 49 7 1 78 49 8 1 49 4 0 7 9 7 5 49 10 2 11 I 6 I 0 I 0 I 0 I -2 p 11 x 7 Element n x 4 Hash x 16 new_from_literal x 4 type x 4 book x 3 []= x 5 parse x 2 [] x 2 == x 7 must_be p 3 I 0 I 12 I 25 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 s 26 accepts an array of hashes M 1 p 2 x 9 for_block t n x 11 ElementTest i 55 45 0 1 44 43 2 79 49 3 1 13 7 4 7 5 49 6 2 15 44 43 2 79 49 3 1 13 7 4 7 7 49 6 2 15 35 2 49 8 1 79 49 9 1 49 4 0 7 10 7 7 49 11 2 11 I 7 I 0 I 0 I 0 I -2 p 12 x 7 Element n x 4 Hash x 16 new_from_literal x 4 type x 4 book x 3 []= x 4 misc x 5 parse x 2 [] x 2 == x 7 must_be p 3 I 0 I 16 I 37 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 p 9 I 0 I 9 I b I d I 16 I 11 I 21 I 15 I 2c x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x 8 describe p 3 I 2 I 7 I d x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x 13 attach_method x 12 PreambleTest n M 1 n n x 12 PreambleTest i 24 5 66 5 7 0 64 56 1 47 50 2 1 15 5 7 3 64 56 4 47 50 2 1 11 I 3 I 0 I 0 I 0 n p 5 s 23 a new preamble instance M 1 p 2 x 9 for_block t n x 12 PreambleTest i 19 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 5 M 1 p 2 x 9 for_block t n x 12 PreambleTest i 27 45 0 1 13 71 2 47 9 21 47 49 3 0 13 47 49 4 0 15 8 24 49 2 0 38 5 11 I 3 I 0 I 0 I 0 I -2 p 6 x 8 Preamble n x 3 new x 8 allocate x 10 initialize x 9 @preamble p 3 I 0 I 21 I 1b x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x 6 before s 17 should not be nil M 1 p 2 x 9 for_block t n x 12 PreambleTest i 8 5 39 0 47 49 1 1 11 I 3 I 0 I 0 I 0 I -2 p 2 x 9 @preamble x 6 assert p 3 I 0 I 25 I 8 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x 2 it p 5 I 0 I 20 I 8 I 24 I 13 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x 8 describe s 25 given a set of @preambles M 1 p 2 x 9 for_block t n x 12 PreambleTest i 30 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 15 5 7 5 64 56 6 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 7 M 1 p 2 x 9 for_block t n x 12 PreambleTest i 25 45 0 1 45 2 3 7 4 49 5 1 49 6 1 38 7 15 39 7 49 8 0 38 9 11 I 4 I 0 I 0 I 0 I -2 p 10 x 6 BibTeX n x 4 Test n x 8 preamble x 8 fixtures x 4 open x 4 @bib x 9 preambles x 10 @preambles p 5 I 0 I 2b I 11 I 2c I 19 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x 6 before s 50 should support round-trips of all parsed preambles M 1 p 2 x 9 for_block t n x 12 PreambleTest i 54 5 7 0 64 39 1 78 49 2 1 49 3 0 47 49 4 2 15 5 7 5 64 39 1 79 49 2 1 49 3 0 47 49 4 2 15 5 7 6 64 39 1 80 49 2 1 49 3 0 47 49 4 2 11 I 5 I 0 I 0 I 0 I -2 p 7 s 51 @preamble{ "This bibliography was created \today" } x 10 @preambles x 2 [] x 4 to_s x 12 assert_equal s 22 @preamble{ "Bib\TeX" } s 42 @preamble{ "Maintained by " # maintainer } p 7 I 0 I 30 I 12 I 31 I 24 I 32 I 36 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x 2 it s 54 should support string replacement of preamble contents M 1 p 2 x 9 for_block t n x 12 PreambleTest i 75 5 7 0 64 39 1 80 49 2 1 49 3 0 49 4 0 47 49 5 2 15 39 6 49 7 0 15 5 7 8 64 39 1 80 49 2 1 49 3 0 49 4 0 47 49 5 2 15 39 6 49 9 0 15 5 7 10 64 39 1 80 49 2 1 49 3 0 49 4 0 47 49 5 2 11 I 5 I 0 I 0 I 0 I -2 p 11 s 29 "Maintained by " # maintainer x 10 @preambles x 2 [] x 5 value x 4 to_s x 12 assert_equal x 4 @bib x 15 replace_strings s 27 "Maintained by " # "Myself" x 12 join_strings s 20 Maintained by Myself p 11 I 0 I 36 I 15 I 37 I 1b I 38 I 30 I 39 I 36 I 3a I 4b x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 p 7 I 0 I 2a I 8 I 2f I 13 I 35 I 1e x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 p 5 I 2 I 1f I d I 29 I 18 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 p 5 I 2 I 5 I 21 I 1d I 40 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x 13 attach_method p 5 I 0 I 1 I 9 I 3 I 25 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0