Ignore:
Timestamp:
09/09/12 00:44:59 (9 years ago)
Author:
ecloud
Message:

byte vectors and bit vectors are unsigned

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/endian-port/trunk/tests/run.scm

    r26431 r27395  
    1212        (endian-port-write-byte-vector outp (blob->u8vector (string->blob "'error: bad argument count'")))
    1313        (endian-port-write-byte-vector outp (u8vector->endian-blob (blob->u8vector (string->blob "always one more bug")) LSB))
     14        (endian-port-write-byte-vector outp (u8vector->endian-blob  (u8vector 256 255 254 128 127 126 125) LSB))
    1415        (close-endian-port outp))
    1516
     
    2526        (print "trying to read u8vector: " (blob->string (endian-port-read-byte-vector inp 27)))
    2627        (print "trying to read u8vector: " (blob->string (endian-port-read-byte-vector inp 19)))
     28        (print "trying to read u8vector of unsigned bytes: " (blob->u8vector (endian-port-read-byte-vector inp 7)))
    2729        (close-endian-port inp))
    2830
Note: See TracChangeset for help on using the changeset viewer.