@@ -84,23 +84,35 @@ expect "Testing Path functions..." {
8484 expect "✓ Original file no longer exists" {
8585 expect "✓ Renamed file exists" {
8686 expect "✓ Renamed file has correct content" {
87- expect "" {
88- # Cleanup phase
89- expect "Cleaning up test files..." {
90- expect "Files to clean up:" {
91- expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_bytes\\.txt" {
92- expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_hardlink\\.txt" {
93- expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_json\\.json" {
94- expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_original\\.txt" {
95- expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_utf8\\.txt" {
96- expect "" {
97- expect "Files remaining after cleanup: Bool.false" {
98- expect "" {
99-
100- # Final completion message
101- expect "I ran all Path function tests." {
102- expect eof {
103- check_exit_and_segfault
87+ expect "" {
88+
89+ # Test Path.exists!
90+ expect "Testing Path.exists!:" {
91+ expect "✓ Path.exists! returns true for a file that exists" {
92+ expect "✓ Path.exists! returns false for a file that does not exist" {
93+ expect "" {
94+
95+ # Cleanup phase
96+ expect "Cleaning up test files..." {
97+ expect "Files to clean up:" {
98+ expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_bytes\\.txt" {
99+ expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_hardlink\\.txt" {
100+ expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_json\\.json" {
101+ expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_original\\.txt" {
102+ expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_rename_new\\.txt" {
103+ expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_utf8\\.txt" {
104+ expect "" {
105+ expect "Files remaining after cleanup: Bool.false" {
106+ expect "" {
107+
108+ # Final completion message
109+ expect "I ran all Path function tests." {
110+ expect eof {
111+ check_exit_and_segfault
112+ }
113+ }
114+ }
115+ }
104116 }
105117 }
106118 }
@@ -114,6 +126,7 @@ expect "Testing Path functions..." {
114126 }
115127 }
116128 }
129+ }
117130 }
118131 }
119132 }
0 commit comments