Changeset 424 for trunk/src/tcl/tests/copy.test
- Timestamp:
- May 1, 2006, 11:16:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tcl/tests/copy.test
r403 r424 26 26 catch {unset lib} 27 27 set lib [Rappture::library rplib_test.xml] 28 test library-9.0.1 {copy command, 0 args} { 28 # this test works for old tcl bindings, different error message 29 #test library-9.0.1.1 {copy command, 0 args} { 30 # list [catch {$lib copy} msg] $msg 31 #} {1 {wrong # args: should be "libraryObj0 copy path from ?arg arg ...?"}} 32 # this test works for new tcl bindings, different error message 33 test library-9.0.1.2 {copy command, 0 args} { 29 34 list [catch {$lib copy} msg] $msg 30 } {1 {wrong # args: should be "::libraryObj0 copy <path> from ?<xmlobj>? <path>"}} 31 test library-9.0.2 {copy command, 0 args} { 35 } {1 {wrong # args: should be "::libraryObj0 copy path from ?xmlobj? path"}} 36 # this test works for old tcl bindings, different error message 37 #test library-9.0.2.1 {copy command, 0 args} { 38 # list [catch {$lib copy "input.number(min)"} msg] $msg 39 #} {1 {wrong # args: should be "libraryObj0 copy path from ?arg arg ...?"}} 40 # this test works for new tcl bindings, different error message 41 test library-9.0.2.2 {copy command, 0 args} { 32 42 list [catch {$lib copy "input.number(min)"} msg] $msg 33 } {1 {wrong # args: should be "::libraryObj0 copy <path> from ?<xmlobj>? <path>"}} 34 test library-9.0.3 {copy command, 1 arg} { 43 } {1 {wrong # args: should be "::libraryObj0 copy path from ?xmlobj? path"}} 44 # this test works for old tcl bindings, different error message 45 #test library-9.0.3.1 {copy command, 1 arg} { 46 # list [catch {$lib copy "input.number(min)" from } msg] $msg 47 #} {1 {wrong # args: should be "copy path from ?xmlobj? path"}} 48 # this test works for new tcl bindings, different error message 49 test library-9.0.3.2 {copy command, 1 arg} { 35 50 list [catch {$lib copy "input.number(min)" from } msg] $msg 36 } {1 {wrong # args: should be "::libraryObj0 copy <path> from ?<xmlobj>? <path>"}} 51 } {1 {wrong # args: should be "::libraryObj0 copy path from ?xmlobj? path"}} 52 # this test works for old tcl bindings 53 # does not work for new tcl bindings because the bad paths are not 54 # discovered in the binding, but in the core copy function and 55 # currently errors from the core functions are not relayed to 56 # the bindings. 37 57 #test library-9.0.4 {copy command not enough arg} { 38 58 # list [catch {$lib copy "input.number(min)" from $lib} msg] $msg 39 59 #} {1 {bad path component "::libraryObj0"}} 40 test library-9.0.5 {copy command not enough arg} { 60 # this test works for old tcl bindings, different error message 61 #test library-9.0.5.1 {copy command not enough arg} { 62 # list [catch {$lib copy "input.number(min)" from } msg] $msg 63 #} {1 {wrong # args: should be "copy path from ?xmlobj? path"}} 64 test library-9.0.5.2 {copy command not enough arg} { 41 65 list [catch {$lib copy "input.number(min)" from } msg] $msg 42 } {1 {wrong # args: should be "::libraryObj0 copy <path> from ?<xmlobj>? <path>"}}43 test library-9.1.1 {copy command from -> junk} {66 } {1 {wrong # args: should be "::libraryObj0 copy path from ?xmlobj? path"}} 67 test library-9.1.1 {copy command, bad syntax, switched from -> junk} { 44 68 list [catch {$lib copy "input.number(blah)" junk "input.number(min)"} msg] $msg 45 69 } {1 {bad syntax: should be "copy path from ?xmlobj? path"}}
Note: See TracChangeset
for help on using the changeset viewer.