422203fdab
Since buffer_open_string() always succeeds and tokenstream_open() always succeeds when given a valid buffer, the NULL checks are unnecessary. This simplifies the test code and makes it more readable. All 12 tests still pass. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>