Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a1787acdee1b9a182780d4cf790384a469a90f240990b3627cd3cb8bcff094ec
Ticket: b2b14f0bb5f4099700870c75eb65b68d235e1d42
tcltest::test documents an -errorCode option, but this is not implemented
User & Date: dgp on 2019-10-09 15:01:26
Changes

  1. icomment:
    
    Here's an interactive session:
    
    % package require tcltest                                                       
    2.5.0                                                                           
    % namespace import tcltest::*                                                   
    % test foo bar -body {error x y z} -result x -errorCode z                       
    % test foo bar -body {error x y z} -result x -errorCode WRONG                   
                                                                                    
                                                                                    
    ==== foo bar FAILED
    ==== Contents of test case:
    error x y z
    ---- Error code was: 'z'
    ---- Error code should have been: 'WRONG'
    ==== foo FAILED
    
    Seems to be implemented. Do you have a more specific bug report where the option is failing to behave as documented?
    
  2. login: "dgp"
  3. mimetype: "text/plain"