test-pandoc-utils.lua - use tr instead of sed.

It should be installed on all *nix systems.
This commit is contained in:
John MacFarlane 2018-05-08 11:51:50 -07:00
parent b8231a8eca
commit fa4f3c5c17

View file

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