From 6d4e08d226971220b02fd74032f931779a0acd38 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 4 Feb 2017 04:03:08 +0100 Subject: [PATCH] test: Remove whitespace (avoid LF/CRLF discrepancy) --- test/functional/legacy/008_autocommands_spec.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/legacy/008_autocommands_spec.lua b/test/functional/legacy/008_autocommands_spec.lua index 58f93392f0..2c398d3c73 100644 --- a/test/functional/legacy/008_autocommands_spec.lua +++ b/test/functional/legacy/008_autocommands_spec.lua @@ -85,6 +85,7 @@ describe('autocommands that delete and unload buffers:', function() feed('') execute('q') wait() - eq('\nVimLeave done\n', io.open('test.out', 'r'):read('*all')) + eq('VimLeave done', + string.match(io.open('test.out', 'r'):read('*all'), "^%s*(.-)%s*$")) end) end)