diff options
| author | jakob <jakob@memeware.net> | 2017-02-19 20:49:43 -0500 |
|---|---|---|
| committer | jakob <jakob@memeware.net> | 2017-02-19 20:49:43 -0500 |
| commit | d65a3ae8790ae28a90f0ebcf0bc4dc078c67dc35 (patch) | |
| tree | 3eb2ad7f78f55cde5b809bc75904b36c5a747502 /test/test_io.c | |
| parent | 32fb7b11d83138cc288d62c1f1674d95cc94e8de (diff) | |
Implemented eliF parsing.
Diffstat (limited to 'test/test_io.c')
| -rw-r--r-- | test/test_io.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test_io.c b/test/test_io.c index 86dde8e..f295182 100644 --- a/test/test_io.c +++ b/test/test_io.c @@ -80,8 +80,12 @@ char *test_stream_xor(void) { char *test_stream_nav(void) { struct stream *s = stream_new(2); mu_assert("Cursor not at beginning", stream_tell(s) == 0); - stream_seek(s, 2); - mu_assert("Cursor not advanced", stream_tell(s) == 2); + stream_seek(s, 2, SEEK_CUR); + mu_assert("Cursor not advanced (SEEK_CUR)", stream_tell(s) == 2); + stream_seek(s, 2, SEEK_SET); + mu_assert("Cursor not advanced (SEEK_SET)", stream_tell(s) == 2); + stream_seek(s, 0, SEEK_END); + mu_assert("Cursor not advanced (SEEK_END)", stream_tell(s) == 2); stream_rewind(s); mu_assert("Cursor not rewinded", stream_tell(s) == 0); stream_free(s); |