diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-05-08 11:22:10 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-05-08 11:22:10 -0700 |
commit | 83fb9d549542b12c14e48cda3a8ce4809466386c (patch) | |
tree | 7bb7bdd7bc49b5ac52df29f9175cb4898e4eada8 /test/lua | |
parent | e6d85927ea69325e79fa4fd5cee0882e9ad3303f (diff) | |
download | pandoc-83fb9d549542b12c14e48cda3a8ce4809466386c.tar.gz |
test-pandoc-utils.lua: workaround some local differences in 'echo'.
Diffstat (limited to 'test/lua')
-rw-r--r-- | test/lua/test-pandoc-utils.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |