Changeset 2765

Show
Ignore:
Timestamp:
03/19/08 17:15:51 (10 months ago)
Author:
ksprotte
Message:

new encode / decode test: string.random

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bknr/datastore/src/data/encoding-test.lisp

    r2764 r2765  
    108108                           :fill-pointer 3)) 
    109109 
     110(test:test string.random 
     111  (test:for-all ((string (test:gen-string))) 
     112    (test:is (congruent-p string (copy-by-encoding string))))) 
     113 
    110114(test:test string.decode-utf-8 
    111115  (labels ((decode-string-from-octets (octets) 
     
    113117               (bknr.datastore::%decode-string in))))     
    114118    (test:is (string-equal "<=>" (decode-string-from-octets #(1 3 60 61 62)))) 
     119    ;; #\? is the substitution char 
    115120    (test:is (string-equal "<?>" (decode-string-from-octets #(1 3 60 188 62)))) 
    116121    (test:for-all ((octets (test:gen-buffer)))