git.iko.soy/typeable/pandoc
on master help sign in
test-pandoc-utils.lua: workaround some local differences in 'echo'.
commit83fb9d549542b12c14e48cda3a8ce4809466386c authorJohn MacFarlane <jgm@berkeley.edu> dateTue 8 May 2018, 11:22 (8 years ago) parente6d8592
1 file changed+2−2
test/lua/test-pandoc-utils.lua+2−2
test/lua/test-pandoc-utils.lua+2−2
@@ -39,10 +39,10 @@ end
3939function test_pipe ()
4040 if os_is_windows() then
4141 local pipe_result = pandoc.pipe('echo', {}, 'hi')
42− return pipe_result == 'hi\n'
42+ return pipe_result == 'hi\n' or pipe_result == 'hi'
4343 else
4444 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'
4646 end
4747end
4848