git.iko.soy/typeable/pandoc
on master help sign in
Another try at test-pandoc-utils.lua on windows.
commit5f33d2e0cd9f19566904c93be04f586de811dd75 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 8 May 2018, 22:32 (8 years ago) parent691f38f
1 file changed+2−3
test/lua/test-pandoc-utils.lua+2−3
test/lua/test-pandoc-utils.lua+2−3
@@ -39,11 +39,10 @@ end
3939function test_pipe ()
4040 if os_is_windows() then
4141 local pipe_result = pandoc.pipe('find', {'hi'}, 'hi')
42− print(pipe_result)
43− return pipe_result == 'hi\n' or pipe_result == 'hi'
42+ return pipe_result:match("%a+") == 'hi'
4443 else
4544 local pipe_result = pandoc.pipe('tr', {'a', 'b'}, 'abc')
46− return pipe_result == 'bbc\n' or pipe_result == 'bbc'
45+ return pipe_result:match("%a+") == 'bbc'
4746 end
4847end
4948