git.iko.soy/typeable/pandoc
on master help sign in
test-pandoc-utils.lua - use tr instead of sed.
fa4f3c5John MacFarlane
test/lua/test-pandoc-utils.lua+1−1
@@ -41,7 +41,7 @@ function test_pipe ()
41 local pipe_result = pandoc.pipe('echo', {}, 'hi')
41 local pipe_result = pandoc.pipe('echo', {}, 'hi')
42 return pipe_result == 'hi\n' or pipe_result == 'hi'
42 return pipe_result == 'hi\n' or pipe_result == 'hi'
43 else
43 else
44− local pipe_result = pandoc.pipe('sed', {'-e', 's/a/b/'}, 'abc')
44+ local pipe_result = pandoc.pipe('tr', {'a', 'b'}, 'abc')
45 return pipe_result == 'bbc\n' or pipe_result == 'bbc'
45 return pipe_result == 'bbc\n' or pipe_result == 'bbc'
46 end
46 end
47end
47end