@@ -203,7 +203,8 @@ test regexp-6.2 {regexp errors} -body {
203203
204204test regexp-6.3 {regexp errors} -constraints jim -body {
205205 list [catch {regexp -gorp a} msg] $msg
206- } -result {1 {bad option "-gorp": must be --, -all, -expanded, -indices, -inline, -line, -nocase, or -start}}
206+ } -result {1 {bad option "-gorp": must be -all, -expanded, -indices, -inline, -line, -nocase, -start, or --}}
207+
207208test regexp-6.4 {regexp errors} {
208209 catch {regexp a( b} msg
209210} 1
@@ -368,9 +369,10 @@ test regexp-11.3 {regsub errors} {
368369test regexp-11.4 {regsub errors} {
369370 list [catch {regsub a b c d e f} msg] $msg
370371} {1 {wrong # args: should be "regsub ?-option ...? exp string subSpec ?varName?"}}
372+
371373test regexp-11.5 {regsub errors} -constraints jim -body {
372374 list [catch {regsub -gorp a b c} msg] $msg
373- } -result {1 {bad option "-gorp": must be --, - all, -command, -expanded, -line, -nocase, or -start }}
375+ } -result {1 {bad option "-gorp": must be -all, -command, -expanded, -line, -nocase, -start, or -- }}
374376
375377test regexp-11.5 {regsub errors} -constraints tcl -body {
376378 list [catch {regsub -gorp a b c} msg] $msg
0 commit comments