Ignore:
Timestamp:
May 1, 2006, 11:16:11 PM (18 years ago)
Author:
dkearney
Message:

added some changes for tcl bindings that i've been holding onto for the last few weeks, still testing and changing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tcl/tests/copy.test

    r403 r424  
    2626catch {unset lib}
    2727set 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
     33test library-9.0.1.2 {copy command, 0 args} {
    2934    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
     41test library-9.0.2.2 {copy command, 0 args} {
    3242    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
     49test library-9.0.3.2 {copy command, 1 arg} {
    3550    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.
    3757#test library-9.0.4 {copy command not enough arg} {
    3858#    list [catch {$lib copy "input.number(min)" from $lib} msg] $msg
    3959#} {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"}}
     64test library-9.0.5.2 {copy command not enough arg} {
    4165    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"}}
     67test library-9.1.1 {copy command, bad syntax, switched from -> junk} {
    4468    list [catch {$lib copy "input.number(blah)" junk "input.number(min)"} msg] $msg
    4569} {1 {bad syntax: should be "copy path from ?xmlobj? path"}}
Note: See TracChangeset for help on using the changeset viewer.