One Hat Cyber Team
Your IP :
216.73.216.216
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
Macaulay2
/
Core
/
tests
/
Edit File:
read.m2
-- check for bug involving "read" changing the strings it returns setRandomSeed() n = temporaryFileName() | "-randombytes" n << concatenate ascii apply(10000, i -> random 256) << close assert (fileLength n == 10000) f = openIn n x = read f; assert( #x == 4096 ) i = 1; j = 100; y = substring(x,i,j); x' = read f; assert( #x' == 4096 ) y' = substring(x',i,j); assert( y == substring(x,i,j) ) -- could fail, because the bytes in x change assert( x' != x ) -- could fail, because the bytes in x change close f removeFile n end -- Local Variables: -- compile-command: "make -C $M2BUILDDIR/Macaulay2/packages/Macaulay2Doc/test read.out" -- End:
Simpan