Another try at test-pandoc-utils.lua on windows.
This commit is contained in:
parent
691f38f3d6
commit
5f33d2e0cd
1 changed files with 2 additions and 3 deletions
|
@ -39,11 +39,10 @@ end
|
|||
function test_pipe ()
|
||||
if os_is_windows() then
|
||||
local pipe_result = pandoc.pipe('find', {'hi'}, 'hi')
|
||||
print(pipe_result)
|
||||
return pipe_result == 'hi\n' or pipe_result == 'hi'
|
||||
return pipe_result:match("%a+") == 'hi'
|
||||
else
|
||||
local pipe_result = pandoc.pipe('tr', {'a', 'b'}, 'abc')
|
||||
return pipe_result == 'bbc\n' or pipe_result == 'bbc'
|
||||
return pipe_result:match("%a+") == 'bbc'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue