From f6ee73b43f8843496227ed3c6e62afdc32fb35fb Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 8 Jul 2014 12:07:15 +0900 Subject: [PATCH] Add failing test case for invalid message (#4) --- test/limelight.vader | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/limelight.vader b/test/limelight.vader index 1174dcc..b3b7519 100644 --- a/test/limelight.vader +++ b/test/limelight.vader @@ -100,6 +100,11 @@ Execute (Unsupported. but g:limelight_conceal_???fg defined): else colo default let &t_Co = 256 + + " Cannot enable it without g:limelight_conceal_ctermfg + Limelight + AssertOff + let g:limelight_conceal_ctermfg = 240 Limelight AssertOn @@ -114,8 +119,11 @@ Execute (Unsupported. but g:limelight_conceal_???fg defined): endif " However, you're still not allowed to pass argument to Limelight command + redir => msg Limelight 0.5 + redir END AssertOff + Assert msg !~ 'g:limelight_conceal_', 'Invalid message: '.msg Execute (TODO: Color interpolation): Assert 0, 'TODO' @@ -123,5 +131,6 @@ Execute (TODO: Color interpolation): Execute (Cleanup): delc AssertOn delc AssertOff + unlet! msg Restore execute 'colo '.g:colors_name