test-pandoc-utils.lua: workaround some local differences in 'echo'.

This commit is contained in:
John MacFarlane 2018-05-08 11:22:10 -07:00
parent e6d85927ea
commit 83fb9d5495

View file

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