summaryrefslogtreecommitdiffstats
path: root/tests/lrepeat.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lrepeat.test')
-rw-r--r--tests/lrepeat.test23
1 files changed, 8 insertions, 15 deletions
diff --git a/tests/lrepeat.test b/tests/lrepeat.test
index 788bb9b..5e9d70f 100644
--- a/tests/lrepeat.test
+++ b/tests/lrepeat.test
@@ -20,13 +20,14 @@ test lrepeat-1.1 {error cases} {
lrepeat
}
-returnCodes 1
- -result {wrong # args: should be "lrepeat count ?value ...?"}
+ -result {wrong # args: should be "lrepeat positiveCount value ?value ...?"}
}
-test lrepeat-1.2 {Accept zero elements(TIP 323)} {
+test lrepeat-1.2 {error cases} {
-body {
lrepeat 1
}
- -result {}
+ -returnCodes 1
+ -result {wrong # args: should be "lrepeat positiveCount value ?value ...?"}
}
test lrepeat-1.3 {error cases} {
-body {
@@ -40,13 +41,14 @@ test lrepeat-1.4 {error cases} {
lrepeat -3 1
}
-returnCodes 1
- -result {bad count "-3": must be integer >= 0}
+ -result {must have a count of at least 1}
}
-test lrepeat-1.5 {Accept zero repetitions (TIP 323)} {
+test lrepeat-1.5 {error cases} {
-body {
lrepeat 0
}
- -result {}
+ -returnCodes 1
+ -result {wrong # args: should be "lrepeat positiveCount value ?value ...?"}
}
test lrepeat-1.6 {error cases} {
-body {
@@ -55,15 +57,6 @@ test lrepeat-1.6 {error cases} {
-returnCodes 1
-result {expected integer but got "3.5"}
}
-test lrepeat-1.7 {Accept zero repetitions (TIP 323)} {
- -body {
- lrepeat 0 a b c
- }
- -result {}
-}
-test lrepeat-1.8 {Do not build enormous lists - Bug 2130992} -body {
- lrepeat 0x10000000 a b c d e f g h
-} -returnCodes error -match glob -result *
## Okay
test lrepeat-2.1 {normal cases} {