Permalink
Browse files

Add failing test case for invalid message (#4)

  • Loading branch information...
1 parent 83db143 commit f6ee73b43f8843496227ed3c6e62afdc32fb35fb @junegunn committed Jul 8, 2014
Showing with 9 additions and 0 deletions.
  1. +9 −0 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,14 +119,18 @@ 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'
Execute (Cleanup):
delc AssertOn
delc AssertOff
+ unlet! msg
Restore
execute 'colo '.g:colors_name

0 comments on commit f6ee73b

Please sign in to comment.