ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/handle/01_readline.t
(Generate patch)

Comparing AnyEvent/t/handle/01_readline.t (file contents):
Revision 1.6 by root, Sat May 24 23:10:18 2008 UTC vs.
Revision 1.7 by root, Sat May 24 23:15:14 2008 UTC

17 on_eof => sub { $cv->broadcast }, 17 on_eof => sub { $cv->broadcast },
18 ); 18 );
19 19
20 my $concat; 20 my $concat;
21 21
22 $rd_ae->push_read_line (sub { 22 $rd_ae->push_read (line => sub {
23 is ($_[1], "A", 'A line was read correctly'); 23 is ($_[1], "A", 'A line was read correctly');
24 my $cb; $cb = sub { 24 my $cb; $cb = sub {
25 $concat .= $_[1]; 25 $concat .= $_[1];
26 $_[0]->push_read_line ($cb); 26 $_[0]->push_read (line => $cb);
27 }; 27 };
28 $_[0]->push_read_line ($cb); 28 $_[0]->push_read (line => $cb);
29 }); 29 });
30 30
31 syswrite $wr, "A\nBC\nDEF\nG\n" . ("X" x 113) . "\n"; 31 syswrite $wr, "A\nBC\nDEF\nG\n" . ("X" x 113) . "\n";
32 close $wr; 32 close $wr;
33 33

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines