Ignore:
Timestamp:
Apr 3, 2007, 12:03:26 PM (17 years ago)
Author:
dkearney
Message:

small updates to tests, but they are still incomplete
added -no-header flag to encode function to produce data that does not have a @@RP-ENC header

File:
1 edited

Legend:

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

    r652 r655  
    5656#----------------------------------------------------------
    5757# encode command
    58 # Rappture::encoding::encode ?-as z|b64? <string>
     58# Rappture::encoding::encode ?-as z|b64? ?-no-header? <string>
    5959#----------------------------------------------------------
    6060
    6161test encode-2.0.0 {Rappture::encoding::encode, 0 arguments} {
    6262    list [catch {Rappture::encoding::encode} msg] $msg
    63 } {1 {wrong # args: should be "Rappture::encoding::encode ?-as z|b64|zb64? <string>"}}
     63} {1 {wrong # args: should be "Rappture::encoding::encode ?-as z|b64|zb64? ?-no-header? <string>"}}
    6464
    6565test encode-2.1.0 {Rappture::encoding::encode, ascii string argument} {
     
    8787test encode-2.2.2 {Rappture::encoding::encode, -as flag correct value z} {
    8888    list [catch {Rappture::encoding::encode -as z} msg] $msg
    89 } {1 {wrong # args: should be "Rappture::encoding::encode ?-as z|b64|zb64? <string>"}}
     89} {1 {wrong # args: should be "Rappture::encoding::encode ?-as z|b64|zb64? ?-no-header? <string>"}}
    9090
    9191test encode-2.2.3 {Rappture::encoding::encode, -as z w/ string} {
     
    130130test decode-3.2.1 {Rappture::encoding::decode, -as flag, bad value} {
    131131    list [catch {Rappture::encoding::decode -as zz} msg] $msg
    132 } {1 {bad value "zz": should be one of z, b64, zb64}}
     132} {1 {wrong # args: should be "Rappture::encoding::decode ?-as z|b64|zb64? <string>"}}
    133133
    134134test decode-3.2.2 {Rappture::encoding::decode, -as flag, zb64 w/ string} {
Note: See TracChangeset for help on using the changeset viewer.