repo.or.cz
/
jimtcl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
build: remove -Werror when running ./configure
[jimtcl.git]
/
tests
/
expand.test
blob
2c7023afd806a4fd9fb7560071928de465427c4a
1
source [file dirname [info script]]/testing.tcl
2
3
test expand-1.1 "Basic tests" {
4
set a {1 2 3}
5
set b {4 5 6}
6
lappend a {*}$b
7
} {1 2 3 4 5 6}
8
9
test expand-1.2 "Basic tests" jim {
10
set a {1 2 3}
11
set b {4 5 6}
12
lappend a {expand}$b
13
} {1 2 3 4 5 6}
14
15
test expand-1.3 "Basic tests" {
16
set a {1 2 3}
17
set b {4 5 6}
18
lappend a *$b
19
} {1 2 3 {*4 5 6}}
20
21
test expand-1.4 "Basic tests" {
22
set a {1 2 3}
23
set b {4 5 6}
24
lappend a expand$b
25
} {1 2 3 {expand4 5 6}}
26
27
testreport