Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5561d4df28
Fetching contributors…

Cannot retrieve contributors at this time

executable file 25 lines (18 sloc) 0.696 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#!perl

# 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; #\
__DATA__

source lib/test_more.tcl

plan 7

eval_is {join} {wrong # args: should be "join list ?joinString?"} \
  {too few args}
eval_is {join 1 2 3} {wrong # args: should be "join list ?joinString?"} \
  {too many args}

is [join [list]] {} {join nothing}
is [join [list a]] {a} {join one}
is [join [list a b c]] {a b c} {join few}

is [join [list a b c] X] {aXbXc} {join with string}
is [join [list a b c] XXXX] {aXXXXbXXXXc} {join with long string}
Something went wrong with that request. Please try again.