Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 19e341d2091eb18d599764cb5b9599f62838b44e
Ticket: 736431ffffffffffffffffffffffffffffffffff
inconsistent usage of tcltest related contraints
User & Date: mistachkin on 2003-05-14 10:12:08
Changes

  1. icomment:
    Logged In: YES 
    user_id=113501
    
    Here are the test failures for reg.test (due to lack of the 
    tcltest specific constraints):
    
    reg.test
    
    ==== reg-32.1 canmatch functionality -- at end FAILED
    ==== Contents of test case:
    
        set pat {blah}
        set line "asd asd"
        # can match at the final d, if '%' follows
        set res [testregexp -xflags -- c $pat $line resvar]
        lappend res $resvar
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== reg-32.1 FAILED
    
    
    ==== reg-32.2 canmatch functionality -- at end FAILED
    ==== Contents of test case:
    
        set pat {s%$}
        set line "asd asd"
        # can only match after the end of the string
        set res [testregexp -xflags -- c $pat $line resvar]
        lappend res $resvar
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== reg-32.2 FAILED
    
    
    ==== reg-32.3 canmatch functionality -- not last char 
    FAILED
    ==== Contents of test case:
    
        set pat {[^d]%$}
        set line "asd asd"
        # can only match after the end of the string
        set res [testregexp -xflags -- c $pat $line resvar]
        lappend res $resvar
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== reg-32.3 FAILED
    
    
    ==== reg-32.3.1 canmatch functionality -- no match 
    FAILED
    ==== Contents of test case:
    
        set pat {\Zx}
        set line "asd asd"
        # can match the last char, if followed by x
        set res [testregexp -xflags -- c $pat $line resvar]
        lappend res $resvar
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== reg-32.3.1 FAILED
    
    
    
  2. login: "mistachkin"
  3. mimetype: "text/plain"
  4. username: "mistachkin"