mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-19 16:54:08 +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)";
|
||||
|
||||
@@ -44,7 +44,7 @@ void runBinaryWithLibrary(const unsigned char* tb, size_t size, const char* libr
|
||||
Toy_initInterpreter(&interpreter);
|
||||
|
||||
//NOTE: supress print output for testing
|
||||
Toy_setInterpreterPrint(&interpreter, noPrintFn);
|
||||
// Toy_setInterpreterPrint(&interpreter, noPrintFn);
|
||||
Toy_setInterpreterAssert(&interpreter, assertWrapper);
|
||||
Toy_setInterpreterError(&interpreter, errorWrapper);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user