3 File md5String
:= method(
9 readToBufferLength(buffer
, 65536)
10 digest
appendSeq(buffer
)
16 if (?args
== nil
or args size
== 0,
17 write("requires a file name as an argument\n")
21 f
:= File clone setPath(args
at(0))
23 m2
:= f asBuffer md5String
24 write("md5 = ", m1
, "\n")
25 write("md5 = ", m2
, " \n")
26 write(if(m1
== m2
, "PASSED", "FAILED"), " TEST\n")