!RBIX 0 x M 1 n n x 10 __script__ i 31 5 7 0 64 47 49 1 1 15 5 7 2 64 47 49 1 1 15 5 45 3 4 56 5 47 50 6 1 15 2 11 I 3 I 0 I 0 I 0 n p 7 s 11 spec_helper x 7 require s 13 hamster/stack x 7 Hamster n M 1 p 2 x 9 for_block t n x 9 __block__ i 11 5 7 0 64 56 1 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 3 s 6 .stack M 1 p 2 x 9 for_block t n x 9 __block__ i 22 5 7 0 64 56 1 47 50 2 1 15 5 7 3 64 56 4 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 5 s 17 with no arguments M 1 p 2 x 9 for_block t n x 9 __block__ 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 9 __block__ i 8 45 0 1 48 2 38 3 11 I 2 I 0 I 0 I 0 I -2 p 4 x 7 Hamster n x 5 stack x 6 @stack p 5 I 0 I b I 0 I c I 8 x 77 /Users/haruki_zaemon/Projects/hamster/spec/hamster/stack/construction_spec.rb p 0 x 6 before s 32 always returns the same instance M 1 p 2 x 9 for_block t n x 9 __block__ i 16 39 0 5 45 1 2 48 3 47 49 4 1 49 5 1 11 I 4 I 0 I 0 I 0 I -2 p 6 x 6 @stack x 7 Hamster n x 5 stack x 5 equal x 6 should p 5 I 0 I f I 0 I 10 I 10 x 77 /Users/haruki_zaemon/Projects/hamster/spec/hamster/stack/construction_spec.rb p 0 x 2 it s 22 returns an empty stack M 1 p 2 x 9 for_block t n x 9 __block__ i 10 39 0 5 47 48 1 49 2 1 11 I 3 I 0 I 0 I 0 I -2 p 3 x 6 @stack x 8 be_empty x 6 should p 5 I 0 I 13 I 0 I 14 I a x 77 /Users/haruki_zaemon/Projects/hamster/spec/hamster/stack/construction_spec.rb p 0 p 9 I 0 I 9 I 0 I b I 8 I f I 13 I 13 I 1e x 77 /Users/haruki_zaemon/Projects/hamster/spec/hamster/stack/construction_spec.rb p 0 x 8 describe s 22 with a number of items M 1 p 2 x 9 for_block t n x 9 __block__ 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 9 __block__ i 18 45 0 1 7 2 64 7 3 64 7 4 64 49 5 3 38 6 11 I 5 I 0 I 0 I 0 I -2 p 7 x 7 Hamster n s 1 A s 1 B s 1 C x 5 stack x 6 @stack p 5 I 0 I 1b I 0 I 1c I 12 x 77 /Users/haruki_zaemon/Projects/hamster/spec/hamster/stack/construction_spec.rb p 0 x 6 before s 35 always returns a different instance M 1 p 2 x 9 for_block t n x 9 __block__ i 26 39 0 5 45 1 2 7 3 64 7 4 64 7 5 64 49 6 3 47 49 7 1 49 8 1 11 I 7 I 0 I 0 I 0 I -2 p 9 x 6 @stack x 7 Hamster n s 1 A s 1 B s 1 C x 5 stack x 5 equal x 10 should_not p 5 I 0 I 1f I 0 I 20 I 1a x 77 /Users/haruki_zaemon/Projects/hamster/spec/hamster/stack/construction_spec.rb p 0 x 2 it s 37 is the same as repeatedly using #push M 1 p 2 x 9 for_block t n x 9 __block__ i 30 39 0 48 1 45 2 3 48 4 7 5 64 49 6 1 7 7 64 49 6 1 7 8 64 49 6 1 83 9 11 I 4 I 0 I 0 I 0 I -2 p 10 x 6 @stack x 6 should x 7 Hamster n x 5 stack s 1 A x 4 push s 1 B s 1 C x 2 == p 5 I 0 I 23 I 0 I 24 I 1e x 77 /Users/haruki_zaemon/Projects/hamster/spec/hamster/stack/construction_spec.rb p 0 p 9 I 0 I 19 I 0 I 1b I 8 I 1f I 13 I 23 I 1e x 77 /Users/haruki_zaemon/Projects/hamster/spec/hamster/stack/construction_spec.rb p 0 p 7 I 0 I 7 I 0 I 9 I b I 19 I 16 x 77 /Users/haruki_zaemon/Projects/hamster/spec/hamster/stack/construction_spec.rb p 0 x 8 describe p 5 I 0 I 5 I 0 I 7 I b x 77 /Users/haruki_zaemon/Projects/hamster/spec/hamster/stack/construction_spec.rb p 0 x 8 describe p 7 I 0 I 1 I 9 I 3 I 12 I 5 I 1f x 77 /Users/haruki_zaemon/Projects/hamster/spec/hamster/stack/construction_spec.rb p 0