@@ -39,11 +39,10 @@ end
3939function test_pipe ()
4040 if os_is_windows() then
4141 local pipe_result = pandoc.pipe('find', {'hi'}, 'hi')
42− print(pipe_result)
43− return pipe_result == 'hi\n' or pipe_result == 'hi'
42+ return pipe_result:match("%a+") == 'hi'
4443 else
4544 local pipe_result = pandoc.pipe('tr', {'a', 'b'}, 'abc')
46− return pipe_result == 'bbc\n' or pipe_result == 'bbc'
45+ return pipe_result:match("%a+") == 'bbc'
4746 end
4847end
4948