@@ -151,7 +151,7 @@ test_file_operations! = |{}|
151151 # Verify file exists before deletion
152152 _ = Cmd.exec!(" test" , [" - e" , " test_to_delete. txt " ])?
153153
154- Path.delete!(delete_path) ? |err| DeleteFailed(err)
154+ Path.delete!(delete_path) ? DeleteFailed
155155
156156 # Verify file is gone after deletion
157157 exists_after_res = Cmd.exec!(" test" , [" - e" , " test_to_delete. txt " ])
@@ -331,7 +331,7 @@ test_path_rename! = |{}|
331331 new_path = Path . from_str ("test_path_rename_new .txt ")
332332 test_file_content = " Content for rename test."
333333
334- Path . write_utf8 !(test_file_content , original_path) ? |err| WriteOriginalFailed (err)
334+ Path . write_utf8 !(test_file_content , original_path) ? WriteOriginalFailed
335335
336336 # Rename the file
337337 when Path . rename !(original_path , new_path) is
@@ -346,12 +346,12 @@ test_path_rename! = |{}|
346346 else
347347 Stdout.line!(" ✓ Original file no longer exists" )?
348348
349- new_file_exists = Path.is_file!(new_path) ? |err| NewIsFileFailed(err)
349+ new_file_exists = Path.is_file!(new_path) ? NewIsFileFailed
350350
351351 if new_file_exists then
352352 Stdout.line!(" ✓ Renamed file exists" )?
353353
354- content = Path.read_utf8!(new_path) ? |err| NewFileReadFailed(err)
354+ content = Path.read_utf8!(new_path) ? NewFileReadFailed
355355
356356 if content == test_file_content then
357357 Stdout.line!(" ✓ Renamed file has correct content" )
@@ -371,7 +371,7 @@ test_path_exists! = |{}|
371371 filename = Path . from_str ("test_path_exists .txt ")
372372 Path . write_utf8 !("This file exists" , filename)?
373373
374- file_exists = Path.exists!(filename) ? |err| PathExistsCheckFailed(err)
374+ file_exists = Path.exists!(filename) ? PathExistsCheckFailed
375375
376376 if file_exists then
377377 Stdout.line!(" ✓ Path . exists ! returns true for a file that exists" )?
@@ -381,7 +381,7 @@ test_path_exists! = |{}|
381381 # Test that a file that does not exist returns false
382382 Path.delete!(filename)?
383383
384- file_exists_after_delete = Path.exists!(filename) ? |err| PathExistsCheckAfterDeleteFailed(err)
384+ file_exists_after_delete = Path.exists!(filename) ? PathExistsCheckAfterDeleteFailed
385385
386386 if file_exists_after_delete then
387387 Stderr.line!(" ✗ Path . exists ! returned true for a file that does not exist" )?
@@ -419,7 +419,7 @@ cleanup_test_files! = |files_requirement|
419419
420420 when files_requirement is
421421 FilesNeedToExist ->
422- delete_result ? |err| FileDeletionFailed(err)
422+ delete_result ? FileDeletionFailed
423423 FilesMaybeExist ->
424424 Ok({})?
425425
0 commit comments