git.iko.soy/typeable/pandoc
on master help sign in
test-pandoc-utils.lua: workaround some local differences in 'echo'.
83fb9d5John MacFarlane
test/lua/test-pandoc-utils.lua+2−2
@@ -39,10 +39,10 @@ end
39function test_pipe ()
39function test_pipe ()
40 if os_is_windows() then
40 if os_is_windows() then
41 local pipe_result = pandoc.pipe('echo', {}, 'hi')
41 local pipe_result = pandoc.pipe('echo', {}, 'hi')
42− return pipe_result == 'hi\n'
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('sed', {'-e', 's/a/b/'}, 'abc')
45− return pipe_result == 'bbc\n'
45+ return pipe_result == 'bbc\n' or pipe_result == 'bbc'
46 end
46 end
47end
47end
48
48