ocarina/tests/file/file.good

87 lines
2.6 KiB
Plaintext

Test 1a: File path is /home/anna/.config/ocarina-test/file.1a
Test 1b: ERROR: NOT_OPEN is not a legal OpenMode (/home/anna/.config/ocarina-test/file.1b)
Passed
Test 1c: ERROR: File does not exist (/home/anna/.config/ocarina-test/file.1c)
Passed
Test 1d: Passed
Test 1e: Passed
Test 1f: Passed
ERROR: File is already open (/home/anna/.config/ocarina-test/file.1f)
Passed
Test 1g: Passed
Passed
Passed
Test 1h: Passed
Passed
Passed
File version is: 0
"Hello, World!"
Passed
"This is a multi-line file =)"
Passed
Passed
a: 1, b: 2, c: 3, d: 4, e: 5
Passed
Test 2a: File path is INVALID
Test 2b: ERROR: NOT_OPEN is not a legal OpenMode (INVALID)
Passed
Test 2c: ERROR: A file with hint = FILE_TYPE_INVALID cannot be opened
Passed
Test 2d: ERROR: A file with hint = FILE_TYPE_INVALID cannot be opened
Passed
Test 2e: Passed
Test 3a: File path is /home/anna/.local/share/ocarina-test/file.3a
Test 3b: ERROR: NOT_OPEN is not a legal OpenMode (/home/anna/.local/share/ocarina-test/file.3b)
Passed
Test 3c: ERROR: File does not exist (/home/anna/.local/share/ocarina-test/file.3c)
Passed
Test 3d: Passed
Test 3e: Passed
Test 3f: Passed
ERROR: File is already open (/home/anna/.local/share/ocarina-test/file.3f)
Passed
Test 3g: Passed
Passed
Passed
Test 3h: Passed
Passed
Passed
File version is: 0
"Hello, World!"
Passed
"This is a multi-line file =)"
Passed
Passed
a: 1, b: 2, c: 3, d: 4, e: 5
Passed
Test 4a: File path is INVALID
Test 4b: ERROR: NOT_OPEN is not a legal OpenMode (INVALID)
Passed
Test 4c: ERROR: A file with hint = FILE_TYPE_INVALID cannot be opened
Passed
Test 4d: ERROR: A file with hint = FILE_TYPE_INVALID cannot be opened
Passed
Test 4e: Passed
Test 5a: File path is /home/anna/.ocarina-test/library/file.5a
Test 5b: ERROR: NOT_OPEN is not a legal OpenMode (/home/anna/.ocarina-test/library/file.5b)
Passed
Test 5c: ERROR: File does not exist (/home/anna/.ocarina-test/library/file.5c)
Passed
Test 5d: ERROR: Cannot write to legacy files (/home/anna/.ocarina-test/library/file.5d)
Passed
Test 5e: Passed
Test 6a: File path is INVALID
Test 6b: ERROR: NOT_OPEN is not a legal OpenMode (INVALID)
Passed
Test 6c: ERROR: A file with hint = FILE_TYPE_INVALID cannot be opened
Passed
Test 6d: ERROR: A file with hint = FILE_TYPE_INVALID cannot be opened
Passed
Test 6e: Passed