~ chicken-core (master) /tests/test-copy-file.scm
Trap1(import (chicken file)2 (chicken file posix)3 (chicken pathname))45(delete-file* "csi.copy")6(let* ((orig-csi (make-pathname ".." "csi"))7 (orig-size (file-size orig-csi)))8 (copy-file orig-csi "csi.copy")9 (let ((copy-size (file-size "csi.copy")))10 (delete-file "csi.copy")11 (assert (= orig-size copy-size))))