test/bibtex/test_elements.rbc in bibtex-ruby-2.0.0pre1 vs test/bibtex/test_elements.rbc in bibtex-ruby-2.0.0

- old
+ new

@@ -1,7 +1,7 @@ !RBIX -9595534255132031488 +16846133056282117387 x M 1 n n @@ -79,11 +79,11 @@ n x 6 BibTeX i -33 +64 5 66 99 7 0 @@ -112,10 +112,41 @@ 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 @@ -123,14 +154,14 @@ 0 I 0 n p -8 +11 x -12 -PreambleTest +11 +ElementTest x 8 MiniTest n x @@ -145,12 +176,610 @@ 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 @@ -306,24 +935,24 @@ p 3 I 0 I -9 +21 I 1b x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x -5 -setup +6 +before s -10 -not be nil +17 +should not be nil M 1 p 2 x @@ -365,41 +994,41 @@ p 3 I 0 I -d +25 I 8 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x -6 -should +2 +it p 5 I 0 I -8 +20 I 8 I -c +24 I 13 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x -7 -context +8 +describe s 25 given a set of @preambles M 1 @@ -537,28 +1166,28 @@ p 5 I 0 I -13 +2b I 11 I -14 +2c I 19 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x -5 -setup +6 +before s -43 -support round-trips of all parsed preambles +50 +should support round-trips of all parsed preambles M 1 p 2 x @@ -661,32 +1290,32 @@ p 7 I 0 I -18 +30 I 12 I -19 +31 I 24 I -1a +32 I 36 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 x -6 -should +2 +it s -47 -support string replacement of preamble contents +54 +should support string replacement of preamble contents M 1 p 2 x @@ -822,27 +1451,27 @@ p 11 I 0 I -1e +36 I 15 I -1f +37 I 1b I -20 +38 I 30 I -21 +39 I 36 I -22 +3a I 4b x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb @@ -851,19 +1480,19 @@ p 7 I 0 I -12 +2a I 8 I -17 +2f I 13 I -1d +35 I 1e x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb @@ -872,32 +1501,33 @@ p 5 I 2 I -7 +1f I d I -11 +29 I 18 x 62 /Users/sylvester/Work/bibtex-ruby/test/bibtex/test_elements.rb p 0 -x -13 -attach_method p -3 +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