home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Software / TemaCD / webclean / !!!python!!! / BeOpen-Python-2.0.exe / TEST_MMAP < prev    next >
Encoding:
Text File  |  2000-09-04  |  569 b   |  20 lines

  1. test_mmap
  2.   Position of foo: 1.0 pages
  3.   Length of file: 2.0 pages
  4.   Contents of byte 0: '\000'
  5.   Contents of first 3 bytes: '\000\000\000'
  6.  
  7.   Modifying file's content...
  8.   Contents of byte 0: '3'
  9.   Contents of first 3 bytes: '3\000\000'
  10.   Contents of second page: '\000foobar\000'
  11.   Regex match on mmap (page start, length of match): 1.0 6
  12.   Seek to zeroth byte
  13.   Seek to 42nd byte
  14.   Seek to last byte
  15.   Try to seek to negative position...
  16.   Try to seek beyond end of mmap...
  17.   Try to seek to negative position...
  18.   Attempting resize()
  19.  Test passed
  20.