!RBIX 0 x M 1 n n x 10 __script__ i 48 5 42 0 1 42 0 2 61 45 3 46 4 1 7 5 60 77 6 46 7 1 44 46 8 1 14 5 7 9 60 44 46 8 1 14 5 42 10 11 53 12 44 47 13 1 14 2 11 I 4 I 0 I 0 I 0 n p 14 x 4 File n n x 11 active_path x 7 dirname s 18 /../../spec_helper x 1 + x 11 expand_path x 7 require s 12 hamster/list x 7 Hamster n M 1 n n x 9 __block__ i 34 5 7 0 60 53 1 44 47 2 1 14 5 7 3 60 53 4 44 47 2 1 14 7 5 7 6 32 2 53 7 47 8 0 11 I 4 I 0 I -1 I -1 n p 9 s 5 .list M 1 n n x 9 __block__ i 22 5 7 0 60 53 1 44 47 2 1 14 5 7 3 60 53 4 44 47 2 1 11 I 4 I 0 I -1 I -1 n p 5 s 17 with no arguments M 1 n n x 9 __block__ i 30 5 53 0 44 47 1 0 14 5 7 2 60 53 3 44 47 4 1 14 5 7 5 60 53 6 44 47 4 1 11 I 4 I 0 I -1 I -1 n p 7 M 1 n n x 9 __block__ i 8 42 0 1 45 2 35 3 11 I 2 I 0 I -1 I -1 n p 4 x 7 Hamster n x 4 list x 5 @list p 5 I 0 I b I 0 I c I 8 x 40 ./spec/hamster/list/construction_spec.rb p 0 x 6 before s 32 always returns the same instance M 1 n n x 9 __block__ i 16 36 0 5 42 1 2 45 3 44 46 4 1 46 5 1 11 I 4 I 0 I -1 I -1 n p 6 x 5 @list x 7 Hamster n x 4 list x 5 equal x 6 should p 5 I 0 I f I 0 I 10 I 10 x 40 ./spec/hamster/list/construction_spec.rb p 0 x 2 it s 21 returns an empty list M 1 n n x 9 __block__ i 10 36 0 5 44 45 1 46 2 1 11 I 3 I 0 I -1 I -1 n p 3 x 5 @list x 8 be_empty x 6 should p 5 I 0 I 13 I 0 I 14 I a x 40 ./spec/hamster/list/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 40 ./spec/hamster/list/construction_spec.rb p 0 x 8 describe s 22 with a number of items M 1 n n x 9 __block__ i 30 5 53 0 44 47 1 0 14 5 7 2 60 53 3 44 47 4 1 14 5 7 5 60 53 6 44 47 4 1 11 I 4 I 0 I -1 I -1 n p 7 M 1 n n x 9 __block__ i 18 42 0 1 7 2 60 7 3 60 7 4 60 46 5 3 35 6 11 I 5 I 0 I -1 I -1 n p 7 x 7 Hamster n s 1 A s 1 B s 1 C x 4 list x 5 @list p 5 I 0 I 1b I 0 I 1c I 12 x 40 ./spec/hamster/list/construction_spec.rb p 0 x 6 before s 35 always returns a different instance M 1 n n x 9 __block__ i 26 36 0 5 42 1 2 7 3 60 7 4 60 7 5 60 46 6 3 44 46 7 1 46 8 1 11 I 7 I 0 I -1 I -1 n p 9 x 5 @list x 7 Hamster n s 1 A s 1 B s 1 C x 4 list x 5 equal x 10 should_not p 5 I 0 I 1f I 0 I 20 I 1a x 40 ./spec/hamster/list/construction_spec.rb p 0 x 2 it s 37 is the same as repeatedly using #cons M 1 n n x 9 __block__ i 30 36 0 45 1 42 2 3 45 4 7 5 60 46 6 1 7 7 60 46 6 1 7 8 60 46 6 1 79 9 11 I 4 I 0 I -1 I -1 n p 10 x 5 @list x 6 should x 7 Hamster n x 4 list s 1 C x 4 cons s 1 B s 1 A x 2 == p 5 I 0 I 23 I 0 I 24 I 1e x 40 ./spec/hamster/list/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 40 ./spec/hamster/list/construction_spec.rb p 0 p 7 I 0 I 7 I 0 I 9 I b I 19 I 16 x 40 ./spec/hamster/list/construction_spec.rb p 0 x 8 describe s 7 .stream M 1 n n x 9 __block__ i 22 5 7 0 60 53 1 44 47 2 1 14 5 7 3 60 53 4 44 47 2 1 11 I 4 I 0 I -1 I -1 n p 5 s 13 with no block M 1 n n x 9 __block__ i 19 5 53 0 44 47 1 0 14 5 7 2 60 53 3 44 47 4 1 11 I 4 I 0 I -1 I -1 n p 5 M 1 n n x 9 __block__ i 8 42 0 1 45 2 35 3 11 I 2 I 0 I -1 I -1 n p 4 x 7 Hamster n x 6 stream x 7 @stream p 5 I 0 I 2f I 0 I 30 I 8 x 40 ./spec/hamster/list/construction_spec.rb p 0 x 6 before s 21 returns an empty list M 1 n n x 9 __block__ i 12 36 0 45 1 42 2 3 45 4 79 5 11 I 3 I 0 I -1 I -1 n p 6 x 7 @stream x 6 should x 7 Hamster n x 4 list x 2 == p 5 I 0 I 33 I 0 I 34 I c x 40 ./spec/hamster/list/construction_spec.rb p 0 x 2 it p 7 I 0 I 2d I 0 I 2f I 8 I 33 I 13 x 40 ./spec/hamster/list/construction_spec.rb p 0 x 8 describe s 12 with a block M 1 n n x 9 __block__ i 19 5 53 0 44 47 1 0 14 5 7 2 60 53 3 44 47 4 1 11 I 4 I 0 I -1 I -1 n p 5 M 1 n n x 9 __block__ i 15 74 17 0 14 42 0 1 53 2 47 3 0 35 4 11 I 4 I 1 I -1 I -1 n p 5 x 7 Hamster n M 1 n n x 9 __block__ i 10 19 1 0 75 77 0 20 1 0 11 I 3 I 0 I -1 I -1 n p 1 x 1 + p 3 I 0 I 3d I a x 40 ./spec/hamster/list/construction_spec.rb p 0 x 6 stream x 7 @stream p 7 I 0 I 3b I 0 I 3c I 4 I 3d I f x 40 ./spec/hamster/list/construction_spec.rb p 1 x 5 count x 6 before s 26 repeatedly calls the block M 1 n n x 9 __block__ i 26 36 0 4 5 46 1 1 45 2 42 3 4 75 76 4 3 4 4 4 5 46 5 5 79 6 11 I 8 I 0 I -1 I -1 n p 7 x 7 @stream x 4 take x 6 should x 7 Hamster n x 4 list x 2 == p 5 I 0 I 40 I 0 I 41 I 1a x 40 ./spec/hamster/list/construction_spec.rb p 0 x 2 it p 7 I 0 I 39 I 0 I 3b I 8 I 40 I 13 x 40 ./spec/hamster/list/construction_spec.rb p 0 p 7 I 0 I 2b I 0 I 2d I b I 39 I 16 x 40 ./spec/hamster/list/construction_spec.rb p 0 x 8 interval x 5 range M 1 n n x 9 __block__ i 21 54 17 0 14 5 18 0 44 45 0 7 1 60 59 53 2 44 47 3 1 11 I 5 I 1 I 1 I 1 n p 4 x 4 to_s s 1 . M 1 n n x 9 __block__ i 19 5 53 0 44 47 1 0 14 5 7 2 60 53 3 44 47 4 1 11 I 4 I 0 I -1 I -1 n p 5 M 1 n n x 9 __block__ i 18 42 0 1 19 2 0 7 2 60 7 3 60 46 4 3 35 5 11 I 5 I 0 I -1 I -1 n p 6 x 7 Hamster n s 1 A s 1 D x 4 send x 9 @interval p 5 I 0 I 4c I 0 I 4d I 12 x 40 ./spec/hamster/list/construction_spec.rb p 0 x 6 before s 44 is equivalent to a list with explicit values M 1 n n x 9 __block__ i 25 36 0 45 1 42 2 3 7 4 60 7 5 60 7 6 60 7 7 60 46 8 4 79 9 11 I 7 I 0 I -1 I -1 n p 10 x 9 @interval x 6 should x 7 Hamster n s 1 A s 1 B s 1 C s 1 D x 4 list x 2 == p 5 I 0 I 50 I 0 I 51 I 19 x 40 ./spec/hamster/list/construction_spec.rb p 0 x 2 it p 7 I 0 I 4a I 0 I 4c I 8 I 50 I 13 x 40 ./spec/hamster/list/construction_spec.rb p 0 x 8 describe p 5 I 0 I 48 I 4 I 4a I 15 x 40 ./spec/hamster/list/construction_spec.rb p 1 x 6 method x 4 each p 9 I 0 I 5 I 0 I 7 I b I 2b I 16 I 48 I 22 x 40 ./spec/hamster/list/construction_spec.rb p 0 x 8 describe p 7 I 0 I 1 I 1a I 3 I 23 I 5 I 30 x 40 ./spec/hamster/list/construction_spec.rb p 0