/[ttyrec]/jsttyplay/t/parser/02_constructor.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /jsttyplay/t/parser/02_constructor.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Tue Feb 17 18:12:32 2009 UTC (15 years, 2 months ago) by dpavlin
File MIME type: application/x-troff
File size: 373 byte(s)
import upstream from http://encryptio.com/code/jsttyplay

1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4
5 use Test::More tests => 5;
6 use Term::Emulator::Parser;
7
8 my $term = Term::Emulator::Parser->new;
9
10 is($term->width, 80);
11 is($term->height, 24);
12 my $str = join "\n", map { " " x 80 } 1 .. 24;
13 is($term->as_string, $str);
14
15 $term = Term::Emulator::Parser->new( width => 20, height => 10 );
16 is($term->width, 20);
17 is($term->height, 10);
18

  ViewVC Help
Powered by ViewVC 1.1.26