Changeset 2960
- Timestamp:
- 05/11/05 11:38:52 (4 years ago)
- svk:copy_cache_prev:
- 4536
- Files:
-
- 2 modified
-
READTHEM (modified) (2 diffs)
-
t/pugsbugs/flattening.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
READTHEM
r2804 r2960 27 27 <http://conal.net/pan/haskell-primer.htm> 28 28 29 = Perl 6 books (always outdated :)) 30 31 Perl 6 and Parrot Essenti - Allison Randal, Dan Sugalski, Leopold Tőtsch 32 Perl 6 Now: The core ideas illustrated with Perl 5 - Scott Walters 33 Perl 6 Bible (Perl6::Bible) - VA 34 29 35 = Non-Haskell books 30 36 … … 38 44 The Demolished Man - Alfred Bester 39 45 Flow My Tears the Policeman Said - Phillip K. Dick 40 -
t/pugsbugs/flattening.t
r2681 r2960 4 4 use Test; 5 5 6 plan 27;6 plan 34; 7 7 8 8 { … … 57 57 is(%hash<22>, undef, 'nothing at key "22"'); 58 58 } 59 60 { 61 my @a; 62 push @a, 1; 63 is(@a.elems, 1, 'Simple push works'); 64 push @a, []; 65 is(@a.elems, 2, 'Arrayref literal not flattened'); 66 push @a, {}; 67 is(@a.elems, 3, 'Hashref literal not flattened'); 68 my @foo; 69 push @a, \@foo; 70 is(@a.elems, 4, 'Arrayref not flattened'); 71 my %foo; 72 push @a, \%foo; 73 is(@a.elems, 5, 'Hashref not flattened'); 74 push @a, @foo; 75 is(@a.elems, 5, 'Array flattened'); 76 push @a, %foo; 77 is(@a.elems, 5, 'Hash flattened'); 78 } 79
