vim-patch:7.0212

Add missing test case (test59's test 8-8).

8fd89f0fe7
0b23879827
This commit is contained in:
watiko 2016-01-15 11:54:31 +09:00
parent 1e94262efe
commit 7fc996abf6

View File

@ -31,8 +31,6 @@ describe("spell checking with 'encoding' set to utf-8", function()
RAR ?
BAD !
#NOSPLITSUGS
PFX I N 1
PFX I 0 in .
@ -92,8 +90,6 @@ describe("spell checking with 'encoding' set to utf-8", function()
RAR ?
BAD !
#NOSPLITSUGS
PFX I N 1
PFX I 0 in .
@ -300,6 +296,17 @@ describe("spell checking with 'encoding' set to utf-8", function()
tail/123
middle/77,1
]])
write_latin1('Xtest8.aff', [[
SET ISO8859-1
NOSPLITSUGS
]])
write_latin1('Xtest8.dic', [[
1234
foo
bar
faabar
]])
write_latin1('Xtest-sal.aff', [[
SET ISO8859-1
TRY esianrtolcdugmphbyfvkwjkqxz-ëéèêïîäàâöüû'ESIANRTOLCDUGMPHBYFVKWJKQXZ
@ -314,8 +321,6 @@ describe("spell checking with 'encoding' set to utf-8", function()
RAR ?
BAD !
#NOSPLITSUGS
PFX I N 1
PFX I 0 in .
@ -483,6 +488,8 @@ describe("spell checking with 'encoding' set to utf-8", function()
os.remove('Xtest6.dic')
os.remove('Xtest7.aff')
os.remove('Xtest7.dic')
os.remove('Xtest8.aff')
os.remove('Xtest8.dic')
end)
-- Function to test .aff/.dic with list of good and bad words. This was a
@ -940,4 +947,29 @@ describe("spell checking with 'encoding' set to utf-8", function()
leadprobar
['leadprebar', 'lead prebar', 'leadbar']]=])
end)
it('part 8-8', function()
insert([[
8good: foo bar faabar
bad: foobar barfoo
badend
]])
-- NOSPLITSUGS
test_one(8, 8)
-- Assert buffer contents.
execute('1,/^test 8-8/-1d')
expect([=[
test 8-8
# file: Xtest.utf-8.spl
bar
faabar
foo
-------
bad
['bar', 'foo']
foobar
['faabar', 'foo bar', 'bar']
barfoo
['bar foo', 'bar', 'foo']]=])
end)
end)