tagged release 0.7.1
[parrot.git] / languages / tcl / t / cmd_eof.t
blob367a9ee86ffcf933fbef64266993d1103604ea5c
1 #!perl
3 # Copyright (C) 2005-2006, The Perl Foundation.
4 # $Id$
6 # the following lines re-execute this as a tcl script
7 # the \ at the end of these lines makes them a comment in tcl \
8 use lib qw(languages/tcl/lib tcl/lib lib ../lib ../../lib); # \
9 use Tcl::Test; #\
10 __DATA__
12 source lib/test_more.tcl
13 plan 4
15 eval_is {eof} \
16   {wrong # args: should be "eof channelId"} \
17   {no args}
19 eval_is {eof a b} \
20   {wrong # args: should be "eof channelId"} \
21   {too many args}
23 eval_is {eof espn-ocho} \
24   {can not find channel named "espn-ocho"} \
25   {invalid channel}
27 is [eof stdin] 0 {eof an open channel}
29 # TODO (#40776): create test files and read from them, testing the eof condition.