Skip to content

Commit

Permalink
add test for inherit unindent (insert mode)
Browse files Browse the repository at this point in the history
  • Loading branch information
LnL7 committed Apr 30, 2017
1 parent 5f557ad commit dce0529
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/nix.vader
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,18 @@ Execute (syntax):
AssertEqual SyntaxOf('result'), 'nixAttribute'
AssertEqual SyntaxOf('&&'), 'nixOperator'

Given nix (let-inherit-insert-indentation):
Do (insert):
ilet\<Enter>inherit (attr) foo;\<Enter>in\<Enter>foo\<Esc>

Expect (indentation):
~~~~~~~
let
inherit (attr) foo;
in
foo


Given nix (builtins):
builtins.doesntexist (builtins.map id [
hashString (builtins.fetchurl (toString "abort"))
Expand Down

0 comments on commit dce0529

Please sign in to comment.