Ignore:
Timestamp:
Jun 10, 2008 6:52:04 PM (16 years ago)
Author:
mmc
Message:

Fixed the Rappture::encoding::encode and decode operations to honor "--".
This is handy when the string may start with a dash, as in:

Rappture::encoding::encode -- -hi

Fixed the library.tcl code to guard against encode/decode problem by
using the "--" in front of strings obtained from the xml.

Cleaned up the tests for the Rappture::LibraryObj? class. Everything
works properly now, except for units. Some of the tests are failing
because the units code reports "length" instead of "area" (test finds
this problem). This should be fixed in the units code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/tcl/tests/diff.test

    r444 r1042  
    3434set libFromGet [$libDefault element -as object "input.number(max)"]
    3535
    36 # this test works for old tcl bindings, different error message
    37 #test library-10.0.1.1 {diff command, no arguments} {
    38 #    list [catch {$lib diff} msg] $msg
    39 #} {1 {wrong # args: should be "libraryObj0 diff libobj"}}
    40 # this test works for new tcl bindings, different error message
    41 test library-10.0.1.2 {diff command, no arguments} {
     36test library-10.0.1.1 {diff command, no arguments} {
    4237    list [catch {$lib diff} msg] $msg
    43 } {1 {wrong # args: should be "::libraryObj0 diff xmlobj"}}
     38} {1 {wrong # args: should be "libraryObj0 diff libobj"}}
    4439test library-10.1.1 {diff command, one argument, no difference} {
    4540    $lib diff $libnew
     
    6762test library-10.3.1 {diff command, two arguments, returns error} {
    6863    list [catch {$lib diff $libnew $libnew} msg] $msg
    69 } {1 {wrong # args: should be "::libraryObj0 diff xmlobj"}}
     64} {1 {wrong # args: should be "libraryObj0 diff libobj"}}
    7065test library-10.3.2 {diff command, bad second arg, returns error} {
    7166    list [catch {$lib diff slfd} msg] $msg
Note: See TracChangeset for help on using the changeset viewer.