Fix tests for the changed default separators

This commit is contained in:
Christian Brabandt
2017-02-24 22:33:07 +01:00
parent 078537f1e2
commit d624a44500
3 changed files with 14 additions and 14 deletions

View File

@@ -15,7 +15,7 @@ describe 'active builder'
call s:builder.add_section('Normal', 'hello')
call s:builder.add_section('Search', 'world')
let stl = s:builder.build()
Expect stl =~ '%#Normal#hello%#Normal_to_Search#>%#Search#world'
Expect stl =~ '%#Normal#hello%#Normal_to_Search#%#Search#world'
end
it 'should reuse highlight group if background colors match'
@@ -24,7 +24,7 @@ describe 'active builder'
call s:builder.add_section('Foo1', 'hello')
call s:builder.add_section('Foo2', 'world')
let stl = s:builder.build()
Expect stl =~ '%#Foo1#hello>world'
Expect stl =~ '%#Foo1#helloworld'
end
it 'should switch highlight groups if foreground colors differ'
@@ -33,7 +33,7 @@ describe 'active builder'
call s:builder.add_section('Foo1', 'hello')
call s:builder.add_section('Foo2', 'world')
let stl = s:builder.build()
Expect stl =~ '%#Foo1#hello%#Foo1_to_Foo2#>%#Foo2#world'
Expect stl =~ '%#Foo1#hello%#Foo1_to_Foo2#%#Foo2#world'
end
it 'should split left/right sections'
@@ -47,14 +47,14 @@ describe 'active builder'
call s:builder.add_section('Normal', 'hello')
call s:builder.add_section('Search', 'world')
let stl = s:builder.build()
Expect stl =~ 'hello%#Normal_to_Search#<%#Search#world'
Expect stl =~ 'hello%#Normal_to_Search#%#Search#world'
end
it 'should not repeat the same highlight group'
call s:builder.add_section('Normal', 'hello')
call s:builder.add_section('Normal', 'hello')
let stl = s:builder.build()
Expect stl == '%#Normal#hello>hello'
Expect stl == '%#Normal#hellohello'
end
it 'should replace accent groups with the specified group'
@@ -94,7 +94,7 @@ describe 'inactive builder'
call s:builder.add_section('Normal', 'hello')
call s:builder.add_section('Search', 'world')
let stl = s:builder.build()
Expect stl =~ '%#Normal_inactive#hello%#Normal_to_Search_inactive#>%#Search_inactive#world'
Expect stl =~ '%#Normal_inactive#hello%#Normal_to_Search_inactive#%#Search_inactive#world'
end
it 'should not render accents'