@@ -80,31 +80,40 @@ expect "Testing Path functions..." {
8080 expect -re "Second file inode: \\\[\"\\d+\"\\\]" {
8181 expect "Inodes are equal: Bool.true" {
8282 expect "" {
83-
84- # Cleanup phase
85- expect "Cleaning up test files..." {
86- expect "Files to clean up:" {
87- expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_bytes\\.txt" {
88- expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_hardlink\\.txt" {
89- expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_json\\.json" {
90- expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_original\\.txt" {
91- expect -re "-rw-r--r-- \\d+ \\w+ \\w+ \\d+ \\w+ +\\d+ \\d+:\\d+ test_path_utf8\\.txt" {
92- expect "" {
93- expect "Files remaining after cleanup: Bool.false" {
94- expect "" {
95-
96- # Final completion message
97- expect "I ran all Path function tests." {
98- expect eof {
99- check_exit_and_segfault
83+ expect "Testing Path.rename!:" {
84+ expect "✓ Original file no longer exists" {
85+ expect "✓ Renamed file exists" {
86+ 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
104+ }
105+ }
106+ }
107+ }
108+ }
109+ }
100110 }
101111 }
102112 }
103113 }
104114 }
105115 }
106116 }
107- }
108117 }
109118 }
110119 }
0 commit comments