test-pandoc-utils.lua: workaround some local differences in 'echo'.
This commit is contained in:
parent
e6d85927ea
commit
83fb9d5495
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue