Skip to content

Commit

Permalink
Add another test (deactivated)
Browse files Browse the repository at this point in the history
Currently fails, will be activated, once PR #16 is included
  • Loading branch information
chrisbra committed Apr 28, 2019
1 parent 765c082 commit 9708ee2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/07/cmd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

vim --clean \
-c ':unlet! b:did_indent' \
-c ':delfunc! GetShIndent' \
-c ':so ../../indent/sh.vim' \
-c ':set sw=0 sts=-1 ts=2 et' \
-c ':5' \
-c '"norm! ciwfi' \
-c ':saveas! output.sh' \
-c ':q!' indent.sh
6 changes: 6 additions & 0 deletions test/07/indent.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if a; then
b
if c; then
d
fi
fi
6 changes: 6 additions & 0 deletions test/07/reference.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if a; then
b
if c; then
d
fi
fi

0 comments on commit 9708ee2

Please sign in to comment.