Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0ebc6eace046424a5cf0f19526e3d8a8569760cc
Ticket: 513983ffffffffffffffffffffffffffffffffff
invalid calls to [test] should throw errors
User & Date: dgp on 2002-02-08 09:19:40
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    Who is this that just replied?  Please take the
    time to log in when commenting.
    
    Did you look at either patch to see what they do?
    
    The documentation says nothing that indicates to me
    an inability of [test] to throw an error when it's
    not called properly according to its documentation.
    In fact, the script [test name] with only one argument
    *does* raise an error, as does the script [test] with no
    arguments.  These patches do nothing contrary to
    the documentation.
    
    Everyone who's contributed here so far agrees that
    extending [test] to accept more options in tcltest
    version 2.x was a good thing.  (A *very* good thing!)
    Don't raise a dispute over points that are not in
    dispute.
    
    Regarding compatibility, can you cite any examples
    of people making use of the fact that [test] will 
    currently not raise an error when called incorrectly?
    Why do they want to call [test] incorrectly in the first
    place?  Why would that ever be intentional?  And since it's
    not intentional, why wouldn't they want to get notified
    about their unintentional error so it can be corrected?
    
    As an example, if I have:
    
    test switch-0.0 {broken example} -match glub -body {
        switch
    } -result {wrong # args:*}
    
    why don't I want an error to alert me to my typo
    (glub for glob)?
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"