Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: d0eb5328c1
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (20 sloc) 631 Bytes
# Copyright (C) 2004-2006, The Parrot Foundation.
# the following lines re-execute this as a tcl script
# the \ at the end of these lines makes them a comment in tcl \
use lib qw(lib); # \
use Tcl::Test; #\
source lib/test_more.tcl
plan 7
eval_is {llength} \
{wrong # args: should be "llength list"} \
{no arg}
eval_is {llength a b} \
{wrong # args: should be "llength list"} \
{too many args}
is [llength [list]] 0 {no elements}
is [llength [list a]] 1 {one elements}
is [llength [list a b]] 2 {two elements}
is [llength [list a b {c {d e}}]] 3 {braces}
is [llength [list a b "c {d e}"]] 3 {spaces}
Jump to Line
Something went wrong with that request. Please try again.