Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 38 lines (28 sloc) 0.769 kB
d6ead2c Initial commit from r31638 of https://svn.perl.org/parrot/trunk/langu…
wcoleda authored
1 #!perl
2
06994a0 Update the files in the repo to add the Parrot Foundation as copyrigh…
arbelo authored
3 # Copyright (C) 2004-2006, The Parrot Foundation.
d6ead2c Initial commit from r31638 of https://svn.perl.org/parrot/trunk/langu…
wcoleda authored
4
5 # the following lines re-execute this as a tcl script
6 # the \ at the end of these lines makes them a comment in tcl \
c34bff7 Tests only need to run from top level build dir.
wcoleda authored
7 use lib qw(lib); # \
d6ead2c Initial commit from r31638 of https://svn.perl.org/parrot/trunk/langu…
wcoleda authored
8 use Tcl::Test; #\
9 __DATA__
10
11 source lib/test_more.tcl
12 plan 8
13
14 eval_is {eval} \
15 {wrong # args: should be "eval arg ?arg ...?"} \
16 {no args}
17
18 eval_is {
19 eval "set a 2"
20 } 2 {single arg}
21
22 eval_is {
23 eval set a 2
24 } 2 {multiple args}
25
26 eval_is {
27 eval set a 2
28 set a
29 } 2 {multiple args, verify side effects}
30
31 eval_is {eval "set a \{"} {missing close-brace} {close brace}
32 eval_is {eval "set a \["} {missing close-bracket} {close bracket}
33 eval_is {eval {set a "}} {missing "} {close quote}
34
35 eval_is {eval {set a "
36 bar"}} {
37 bar} {keep whitespace inside quotes}
Something went wrong with that request. Please try again.