summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorgriffin <briang42@easystreet.net>2023-04-21 00:35:20 (GMT)
committergriffin <briang42@easystreet.net>2023-04-21 00:35:20 (GMT)
commit6ca1315df1882001bc211f10edf4db5020931037 (patch)
tree16c7747409d541c8962a90d0d42221dce115cc11 /tests
parentb807564e684388181859f1c03c4b318bc3c32b41 (diff)
parentc091b78af60d2f2f46c162bed19465380cf8d4bf (diff)
downloadtcl-6ca1315df1882001bc211f10edf4db5020931037.zip
tcl-6ca1315df1882001bc211f10edf4db5020931037.tar.gz
tcl-6ca1315df1882001bc211f10edf4db5020931037.tar.bz2
merge trunk
Diffstat (limited to 'tests')
-rw-r--r--tests/bigdata.test36
1 files changed, 21 insertions, 15 deletions
diff --git a/tests/bigdata.test b/tests/bigdata.test
index 34b51dc..ced2510 100644
--- a/tests/bigdata.test
+++ b/tests/bigdata.test
@@ -726,8 +726,7 @@ bigtestRO binary-encode/decode-uuencode-bigdata-1 "binary encode/decode uuencode
#
# foreach
bigtestRO foreach-bigdata-1 "foreach" 1 -body {
- # Unset explicitly before setting to save memory as bigtestRO runs the
- # script below twice.
+ # Unset explicitly before setting as bigtestRO runs the script twice.
unset -nocomplain l2
foreach x $l {
lappend l2 $x
@@ -737,7 +736,7 @@ bigtestRO foreach-bigdata-1 "foreach" 1 -body {
set l [bigList 0x100000000]
} -cleanup {
bigClean
-} -constraints lengthtruncation
+}
#
# lappend
@@ -854,13 +853,21 @@ bigtestRO llength-bigdata-1 {llength} 4294967296 -body {
#
# lmap
-bigtestRO lmap-bigdata-1 "lmap" 1 -body {
- testlutil equal $l [lmap e $l {set e}]
+bigtestRO lmap-bigdata-1 "lmap" 4294967296 -body {
+ set n 0
+ if {0} {
+ # TODO - This is the right test but runs out of memory
+ testlutil equal $l [lmap e $l {set e}]
+ } else {
+ lmap e $l {incr n; continue}
+ }
+ set n
} -setup {
set l [bigList 0x100000000]
} -cleanup {
bigClean
-} -constraints bug-6926a21840
+ puts ""
+}
#
# lrange
@@ -887,18 +894,15 @@ bigtestRO lrange-bigdata-1 "lrange" {6 7 5 {} 5 4 {} 9 {}} -body {
bigtest lrepeat-bigdata-1 "lrepeat single element length > UINT_MAX" 4294967296 -body {
# Just to test long lengths are accepted as arguments
llength [lrepeat 0x100000000 x]
-} -constraints bug-4ce858a049
+}
-bigtest lrepeat-bigdata-2 "string repeat multiple char" {4294967296 1} -body {
- # Make length multiple of 4 AND 10 since the bigString pattern length is 10
- set len [expr 4294967320/4]
- set l [lrepeat $len 0 1 2 3 4 5 6 7 8 9]
- list \
- [llength $l] \
- [testlutil equal $l [bigList 4294967320]]
+bigtest lrepeat-bigdata-2 "string repeat multiple char" {4294967400 {0 1 2 3 4 5 6 7}} -body {
+ set len [expr 4294967400/8]
+ set l [lrepeat $len 0 1 2 3 4 5 6 7]
+ list [llength $l] [lrange $l end-7 end]
} -cleanup {
bigClean
-} -constraints bug-4ce858a049
+}
#
# lreplace
@@ -1019,6 +1023,8 @@ bigtestRO concat-bigdata-1 "concat" {4294967296 {0 1 2 3 4} {6 7 0 1 2} {3 4 5 6
#
# TODO
+# lremove
+# lreverse
# encoding convertfrom
# encoding convertto
# dict *