From 83fb9d549542b12c14e48cda3a8ce4809466386c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 8 May 2018 11:22:10 -0700 Subject: test-pandoc-utils.lua: workaround some local differences in 'echo'. --- test/lua/test-pandoc-utils.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/lua') diff --git a/test/lua/test-pandoc-utils.lua b/test/lua/test-pandoc-utils.lua index 000be1f7a..4d02f6980 100644 --- a/test/lua/test-pandoc-utils.lua +++ b/test/lua/test-pandoc-utils.lua @@ -39,10 +39,10 @@ end function test_pipe () if os_is_windows() then local pipe_result = pandoc.pipe('echo', {}, 'hi') - return pipe_result == 'hi\n' + return pipe_result == 'hi\n' or pipe_result == 'hi' else local pipe_result = pandoc.pipe('sed', {'-e', 's/a/b/'}, 'abc') - return pipe_result == 'bbc\n' + return pipe_result == 'bbc\n' or pipe_result == 'bbc' end end -- cgit v1.2.3