diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-05-08 22:32:44 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-05-08 22:32:44 -0700 |
commit | 5f33d2e0cd9f19566904c93be04f586de811dd75 (patch) | |
tree | 8bbd8d329ed88593cdd681e4830469b95760429d /test/lua | |
parent | 691f38f3d6e1ee4cd1f5d5c8c60c628543f11f55 (diff) | |
download | pandoc-5f33d2e0cd9f19566904c93be04f586de811dd75.tar.gz |
Another try at test-pandoc-utils.lua on windows.
Diffstat (limited to 'test/lua')
-rw-r--r-- | test/lua/test-pandoc-utils.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/lua/test-pandoc-utils.lua b/test/lua/test-pandoc-utils.lua index 89d273cef..21f937edb 100644 --- a/test/lua/test-pandoc-utils.lua +++ b/test/lua/test-pandoc-utils.lua @@ -39,11 +39,10 @@ end function test_pipe () if os_is_windows() then local pipe_result = pandoc.pipe('find', {'hi'}, 'hi') - print(pipe_result) - return pipe_result == 'hi\n' or pipe_result == 'hi' + return pipe_result:match("%a+") == 'hi' else local pipe_result = pandoc.pipe('tr', {'a', 'b'}, 'abc') - return pipe_result == 'bbc\n' or pipe_result == 'bbc' + return pipe_result:match("%a+") == 'bbc' end end |