mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-16 07:14:07 +10:00
Messing with tests
This commit is contained in:
@@ -121,12 +121,13 @@ fn reset() {
|
||||
assert reader.seek("end", -2) == true, "seek from end failed";
|
||||
|
||||
contents = reader.read(string);
|
||||
assert (contents == "!\n" || contents == "\r\n"), "seek failed to move file position (2nd)";
|
||||
print ">>>(" + contents + ")" + string( contents.length() );
|
||||
assert contents == "\n", "seek failed to move file position (2nd)";
|
||||
|
||||
assert reader.seek("cur", -2) == true, "seek from cur failed";
|
||||
|
||||
contents = reader.read(string);
|
||||
assert (contents == "!\n" || contents == "\r\n"), "seek failed to move file position (3rd)";
|
||||
assert contents == "\n", "seek failed to move file position (3rd)";
|
||||
|
||||
assert reader.seek("CUR", 0) == false, "seek origin failed (1st)";
|
||||
assert reader.seek("End", 0) == false, "seek origin failed (2nd)";
|
||||
|
||||
Reference in New Issue
Block a user