Changeset 424 for trunk/src/tcl/tests/isa.test
- Timestamp:
- May 1, 2006 11:16:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tcl/tests/isa.test
r403 r424 19 19 } 20 20 catch {unset lib} 21 set lib [Rappture::library rplib_test.xml] 21 22 22 23 #---------------------------------------------------------- … … 25 26 #---------------------------------------------------------- 26 27 test library-7.0.1 {isa command 0 arg} { 27 catch {unset lib}28 set lib [Rappture::library rplib_test.xml]29 28 list [catch {$lib isa} msg] $msg 30 } {1 {wrong # args: should be "::libraryObj0 isa <objType>"}}29 } {1 {wrong # args: should be "::libraryObj0 isa objType"}} 31 30 test library-7.1.1 {isa command 1 valid arg} { 32 catch {unset lib}33 set lib [Rappture::library rplib_test.xml]34 31 $lib isa ::Rappture::LibraryObj 35 32 } {1} 36 33 test library-7.1.2 {isa command 1 invalid arg} { 37 catch {unset lib}38 set lib [Rappture::library rplib_test.xml]39 34 $lib isa ::Rappture::Curve 40 35 } {0} 41 36 test library-7.1.3 {isa command 1 invalid arg} { 42 catch {unset lib}43 set lib [Rappture::library rplib_test.xml]44 37 $lib isa sdfsdf 45 38 } {0} 46 39 test library-7.2.1 {isa command 2 args} { 47 catch {unset lib}48 set lib [Rappture::library rplib_test.xml]49 40 list [catch {$lib isa ::Rappture::LibraryObj ::Rappture::LibraryObj} msg] $msg 50 } {1 {wrong # args: should be "::libraryObj 4 isa <objType>"}}41 } {1 {wrong # args: should be "::libraryObj0 isa objType"}} 51 42 52 43
Note: See TracChangeset
for help on using the changeset viewer.