Skip to content

Commit

Permalink
Clean up tests for fold-handling
Browse files Browse the repository at this point in the history
Give the do-blocks a better description and remove unnecessary option
settings in the execute-blocks. See justinmk#152.
  • Loading branch information
milsen committed Aug 4, 2015
1 parent f507f91 commit ada4803
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions tests/test.vader
Original file line number Diff line number Diff line change
Expand Up @@ -1110,17 +1110,13 @@ Execute (cleanup):
###########################################################
# Fold Handling

Execute (set foldmethod=manual):
set foldmethod=manual
set foldopen+=search

Given:
aaaaaaaaaa
aaaaabaaba
ababaaaaaa
aaaaaabaaa

Do (using s and ;):
Do (s and ; in folds):
jzfjggsba;x

Expect:
Expand All @@ -1129,7 +1125,7 @@ Expect:
ababaaaaaa
aaaaaabaaa

Do (using s and \):
Do (s and \ in folds):
jzfjGsba\\x

Expect:
Expand All @@ -1138,7 +1134,7 @@ Expect:
aabaaaaaa
aaaaaabaaa

Do (using S and ;):
Do (S and ; in folds):
jzfjG$Sba;x

Expect:
Expand All @@ -1147,7 +1143,7 @@ Expect:
abaaaaaaa
aaaaaabaaa

Do (using S and \):
Do (S and \ in folds):
jzfjggSba\\x

Expect:
Expand All @@ -1159,7 +1155,7 @@ Expect:
Execute (set foldopen-=search):
set foldopen-=search

Do (using s and ;):
Do (s and ; in folds):
jzfjggsba;x

Expect:
Expand All @@ -1168,14 +1164,14 @@ Expect:
ababaaaaaa
aaaaaaaaa

Do (using s and \):
Do (s and \ in folds):
jzfjGsba\\x

Expect:
aaaaaaaaaa
aaaaaabaaa

Do (using S and ;):
Do (S and ; in folds):
jzfjG$Sba;zvx

Expect:
Expand All @@ -1184,7 +1180,7 @@ Expect:
abaaaaaaa
aaaaaabaaa

Do (using S and \):
Do (S and \ in folds):
jzfjggSba\\x

Expect:
Expand All @@ -1194,5 +1190,4 @@ Expect:
aaaaaaaaa

Execute (cleanup):
set foldmethod=indent
set foldopen+=search

0 comments on commit ada4803

Please sign in to comment.