Skip to content

Commit

Permalink
Another try at test-pandoc-utils.lua on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed May 9, 2018
1 parent 691f38f commit 5f33d2e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/lua/test-pandoc-utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5f33d2e

Please sign in to comment.