mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
encoding.c: Support calling peekc past the end of the buffer. This makes calling peekc easier.
This commit is contained in:
@@ -866,6 +866,10 @@ test_peekc()
|
||||
assert(text_decoder_getc(decoder) == 'd');
|
||||
assert(text_decoder_eof(decoder) == 1);
|
||||
|
||||
// Calling peekc past the end of the buffer.
|
||||
assert(text_decoder_peekc(decoder) == '\0');
|
||||
assert(text_decoder_eof(decoder) == 1);
|
||||
|
||||
destroy_text_decoder(decoder);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user