You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Content of test_write.json: {\"some\":\"json stuff\"}
21
+
22
+
Testing File.is_file!:
23
+
✓ test_bytes.txt is confirmed to be a file
24
+
25
+
Testing File.is_sym_link!:
26
+
✓ test_bytes.txt is not a symbolic link
27
+
✓ test_symlink.txt is a symbolic link
28
+
29
+
Testing File.type!:
30
+
test_bytes.txt file type: IsFile
31
+
. file type: IsDir
32
+
test_symlink.txt file type: IsSymLink
33
+
34
+
Testing File.open_reader_with_capacity!:
35
+
✓ Successfully opened reader with 3 byte capacity
36
+
37
+
Reading lines from file:
38
+
Line 1: First line
39
+
40
+
Line 2: Second line
41
+
42
+
43
+
Testing File.hard_link!:
44
+
✓ Successfully created hard link: test_link_to_original.txt
45
+
Hard link inodes should be equal: Bool.true
46
+
✓ Hard link contains same content as original
47
+
48
+
Testing File.rename!:
49
+
✓ Successfully renamed test_rename_original.txt to test_rename_new.txt
50
+
✓ Original file test_rename_original.txt no longer exists
51
+
✓ Renamed file test_rename_new.txt exists
52
+
✓ Renamed file has correct content
53
+
54
+
Testing File.exists!:
55
+
✓ File.exists! returns true for a file that exists
56
+
✓ File.exists! returns false for a file that does not exist
57
+
58
+
I ran all file function tests.
59
+
60
+
Cleaning up test files...
61
+
✓ Deleted all files.
62
+
"]
63
+
64
+
expect -re $expected_output {
65
+
expect eof {
66
+
check_exit_and_segfault
67
+
}
113
68
}
114
69
115
-
puts stderr "\nExpect script failed: output was different from expected value. uncomment `exp_internal 1` to debug."
70
+
puts stderr "\nExpect script failed: output was not as expected. Diff the output with expected_output in this script. Alternatively, uncomment `exp_internal 1` to debug."
0 commit comments