@@ -39,10 +39,10 @@ end
39function test_pipe ()
39function test_pipe ()
40 if os_is_windows() then
40 if os_is_windows() then
41 local pipe_result = pandoc.pipe('echo', {}, 'hi')
41 local pipe_result = pandoc.pipe('echo', {}, 'hi')
42− return pipe_result == 'hi\n'
42+ return pipe_result == 'hi\n' or pipe_result == 'hi'
44 local pipe_result = pandoc.pipe('sed', {'-e', 's/a/b/'}, 'abc')
44 local pipe_result = pandoc.pipe('sed', {'-e', 's/a/b/'}, 'abc')
45− return pipe_result == 'bbc\n'
45+ return pipe_result == 'bbc\n' or pipe_result == 'bbc'