Fossil SCM

Test amend-tag-2.2 expects a case insensitive sorted list of tags since [3500dbfd84].

preben 2023-11-07 09:57 test-fixes-2.24
Commit 3a463e8f1279731b198fd320fc3adae61f882043ab096afd4c05233349723eb4
1 file changed +3 -1
+3 -1
--- test/amend.test
+++ test/amend.test
@@ -306,13 +306,15 @@
306306
lappend tags -tag $tag
307307
lappend cancels -cancel $tag
308308
}
309309
foreach res $result {
310310
append t1exp ", $res"
311
- append t2exp "sym-$res*"
312311
append t3exp "Add*tag*\"$res\".*"
313312
append t5exp "Cancel*tag*\"$res\".*"
313
+ }
314
+ foreach res [lsort -nocase $result] {
315
+ append t2exp "sym-$res*"
314316
}
315317
eval fossil amend $HASH $tags
316318
test amend-tag-$tc.1 {[string match "*hash:*$HASH*tags:*$t1exp*" $RESULT]}
317319
fossil tag ls --raw $HASH
318320
test amend-tag-$tc.2 {[string match $t2exp $RESULT]}
319321
--- test/amend.test
+++ test/amend.test
@@ -306,13 +306,15 @@
306 lappend tags -tag $tag
307 lappend cancels -cancel $tag
308 }
309 foreach res $result {
310 append t1exp ", $res"
311 append t2exp "sym-$res*"
312 append t3exp "Add*tag*\"$res\".*"
313 append t5exp "Cancel*tag*\"$res\".*"
 
 
 
314 }
315 eval fossil amend $HASH $tags
316 test amend-tag-$tc.1 {[string match "*hash:*$HASH*tags:*$t1exp*" $RESULT]}
317 fossil tag ls --raw $HASH
318 test amend-tag-$tc.2 {[string match $t2exp $RESULT]}
319
--- test/amend.test
+++ test/amend.test
@@ -306,13 +306,15 @@
306 lappend tags -tag $tag
307 lappend cancels -cancel $tag
308 }
309 foreach res $result {
310 append t1exp ", $res"
 
311 append t3exp "Add*tag*\"$res\".*"
312 append t5exp "Cancel*tag*\"$res\".*"
313 }
314 foreach res [lsort -nocase $result] {
315 append t2exp "sym-$res*"
316 }
317 eval fossil amend $HASH $tags
318 test amend-tag-$tc.1 {[string match "*hash:*$HASH*tags:*$t1exp*" $RESULT]}
319 fossil tag ls --raw $HASH
320 test amend-tag-$tc.2 {[string match $t2exp $RESULT]}
321

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button