[Tclresource-commits] Extras/Tests IdCmd.test,NONE,1.1
Status: Beta
Brought to you by:
bdesgraupes
From: Bernard D. <bde...@us...> - 2004-09-06 07:03:08
|
Update of /cvsroot/tclresource/Extras/Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29524/Extras/Tests Added Files: IdCmd.test Log Message: First checkin --- NEW FILE: IdCmd.test --- # ------------------------------------------------------- # File: "IdCmd.test" # Created: 2004-09-05 20:16:33 # Last modification: 2004-09-06 07:54:53 # Author: Bernard Desgraupes # e-mail: <bde...@ea...> # www: <http://webperso.easyconnect.fr/bdesgraupes/> # (c) Copyright: Bernard Desgraupes, 2004 # All rights reserved. # This software is free software with BSD licence. # Versions history: see the Changes.Log file. # # Test suite for the Tcl [resource id] command defined # in the Tclresource extension. # # $Date: 2004/09/06 07:02:58 $ # $Revision: 1.1 $ # ------------------------------------------------------- source [file join [file dir [info script]] common.tcl] namespace eval ::resource::test { namespace import ::tcltest::* test ResourceId-1-1 {Get ID from name} -setup { set rid [resource open $resfileDF] } -body { set res [resource id TEXT "Say hello" $rid] } -cleanup { resource close $rid } -result 128 test ResourceId-1-2 {Resource with no name} -setup { set rid [resource open $resfileDF] } -body { set res [resource id ALRT "" $rid] } -cleanup { resource close $rid } -returnCodes error -result "could not find resource" # test ResourceId-1-3 {} -setup { # } -body { # } -cleanup { # } -result "" # Cleanup ::tcltest::cleanupTests } namespace delete ::resource::test |