mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test59: Fixup incorrectly encoded utf-8
This commit is contained in:
parent
a412e72a2f
commit
d4fae57a4c
@ -539,7 +539,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
it('part 1-1', function()
|
it('part 1-1', function()
|
||||||
insert([[
|
insert([[
|
||||||
1good: wrong OK puts. Test the end
|
1good: wrong OK puts. Test the end
|
||||||
bad: inputs comment ok Ok. test déôl end the
|
bad: inputs comment ok Ok. test déôl end the
|
||||||
badend
|
badend
|
||||||
|
|
||||||
test2:
|
test2:
|
||||||
@ -547,13 +547,13 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
]])
|
]])
|
||||||
test_one(1, 1)
|
test_one(1, 1)
|
||||||
execute([[$put =soundfold('goobledygoook')]])
|
execute([[$put =soundfold('goobledygoook')]])
|
||||||
execute([[$put =soundfold('kóopërÿnôven')]])
|
execute([[$put =soundfold('kóopërÿnôven')]])
|
||||||
execute([[$put =soundfold('oeverloos gezwets edale')]])
|
execute([[$put =soundfold('oeverloos gezwets edale')]])
|
||||||
-- And now with SAL instead of SOFO items; test automatic reloading.
|
-- And now with SAL instead of SOFO items; test automatic reloading.
|
||||||
os.execute('cp -f Xtest-sal.aff Xtest.aff')
|
os.execute('cp -f Xtest-sal.aff Xtest.aff')
|
||||||
execute('mkspell! Xtest Xtest')
|
execute('mkspell! Xtest Xtest')
|
||||||
execute([[$put =soundfold('goobledygoook')]])
|
execute([[$put =soundfold('goobledygoook')]])
|
||||||
execute([[$put =soundfold('kóopërÿnôven')]])
|
execute([[$put =soundfold('kóopërÿnôven')]])
|
||||||
execute([[$put =soundfold('oeverloos gezwets edale')]])
|
execute([[$put =soundfold('oeverloos gezwets edale')]])
|
||||||
-- Also use an addition file.
|
-- Also use an addition file.
|
||||||
execute('mkspell! Xtest.utf-8.add.spl Xtest.utf-8.add')
|
execute('mkspell! Xtest.utf-8.add.spl Xtest.utf-8.add')
|
||||||
@ -600,7 +600,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
# file: Xtest.utf-8.spl
|
# file: Xtest.utf-8.spl
|
||||||
Comment
|
Comment
|
||||||
deol
|
deol
|
||||||
déôr
|
déôr
|
||||||
input
|
input
|
||||||
OK
|
OK
|
||||||
output
|
output
|
||||||
@ -627,8 +627,8 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
['OK', 'Uk', 'Put']
|
['OK', 'Uk', 'Put']
|
||||||
test
|
test
|
||||||
['Test', 'testn', 'testen']
|
['Test', 'testn', 'testen']
|
||||||
déôl
|
déôl
|
||||||
['deol', 'déôr', 'test']
|
['deol', 'déôr', 'test']
|
||||||
end
|
end
|
||||||
['put', 'uk', 'test']
|
['put', 'uk', 'test']
|
||||||
the
|
the
|
||||||
@ -653,7 +653,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
it('part 2-1', function()
|
it('part 2-1', function()
|
||||||
insert([[
|
insert([[
|
||||||
2good: puts
|
2good: puts
|
||||||
bad: inputs comment ok Ok end the. test déôl
|
bad: inputs comment ok Ok end the. test déôl
|
||||||
badend
|
badend
|
||||||
]])
|
]])
|
||||||
-- Postponed prefixes.
|
-- Postponed prefixes.
|
||||||
@ -664,7 +664,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
# file: Xtest.utf-8.spl
|
# file: Xtest.utf-8.spl
|
||||||
Comment
|
Comment
|
||||||
deol
|
deol
|
||||||
déôr
|
déôr
|
||||||
OK
|
OK
|
||||||
put
|
put
|
||||||
input
|
input
|
||||||
@ -695,16 +695,16 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
['put', 'uk', 'test']
|
['put', 'uk', 'test']
|
||||||
test
|
test
|
||||||
['Test', 'testn', 'testen']
|
['Test', 'testn', 'testen']
|
||||||
déôl
|
déôl
|
||||||
['deol', 'déôr', 'test']]=])
|
['deol', 'déôr', 'test']]=])
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('part 3-3', function()
|
it('part 3-3', function()
|
||||||
insert([[
|
insert([[
|
||||||
Test rules for compounding.
|
Test rules for compounding.
|
||||||
|
|
||||||
3good: foo mï foobar foofoobar barfoo barbarfoo
|
3good: foo mï foobar foofoobar barfoo barbarfoo
|
||||||
bad: bar la foomï barmï mïfoo mïbar mïmï lala mïla lamï foola labar
|
bad: bar la foomï barmï mïfoo mïbar mïmï lala mïla lamï foola labar
|
||||||
badend
|
badend
|
||||||
]])
|
]])
|
||||||
test_one(3, 3)
|
test_one(3, 3)
|
||||||
@ -713,30 +713,30 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
test 3-3
|
test 3-3
|
||||||
# file: Xtest.utf-8.spl
|
# file: Xtest.utf-8.spl
|
||||||
foo
|
foo
|
||||||
mï
|
mï
|
||||||
-------
|
-------
|
||||||
bad
|
bad
|
||||||
['foo', 'mï']
|
['foo', 'mï']
|
||||||
bar
|
bar
|
||||||
['barfoo', 'foobar', 'foo']
|
['barfoo', 'foobar', 'foo']
|
||||||
la
|
la
|
||||||
['mï', 'foo']
|
['mï', 'foo']
|
||||||
foomï
|
foomï
|
||||||
['foo mï', 'foo', 'foofoo']
|
['foo mï', 'foo', 'foofoo']
|
||||||
barmï
|
barmï
|
||||||
['barfoo', 'mï', 'barbar']
|
['barfoo', 'mï', 'barbar']
|
||||||
mïfoo
|
mïfoo
|
||||||
['mï foo', 'foo', 'foofoo']
|
['mï foo', 'foo', 'foofoo']
|
||||||
mïbar
|
mïbar
|
||||||
['foobar', 'barbar', 'mï']
|
['foobar', 'barbar', 'mï']
|
||||||
mïmï
|
mïmï
|
||||||
['mï mï', 'mï']
|
['mï mï', 'mï']
|
||||||
lala
|
lala
|
||||||
[]
|
[]
|
||||||
mïla
|
mïla
|
||||||
['mï', 'mï mï']
|
['mï', 'mï mï']
|
||||||
lamï
|
lamï
|
||||||
['mï', 'mï mï']
|
['mï', 'mï mï']
|
||||||
foola
|
foola
|
||||||
['foo', 'foobar', 'foofoo']
|
['foo', 'foobar', 'foofoo']
|
||||||
labar
|
labar
|
||||||
@ -815,7 +815,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
insert([[
|
insert([[
|
||||||
Test affix flags with two characters
|
Test affix flags with two characters
|
||||||
|
|
||||||
5good: fooa1 fooaé bar prebar barbork prebarbork startprebar
|
5good: fooa1 fooaé bar prebar barbork prebarbork startprebar
|
||||||
start end startend startmiddleend nouend
|
start end startend startmiddleend nouend
|
||||||
bad: foo fooa2 prabar probarbirk middle startmiddle middleend endstart
|
bad: foo fooa2 prabar probarbirk middle startmiddle middleend endstart
|
||||||
startprobar startnouend
|
startprobar startnouend
|
||||||
@ -830,7 +830,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
barbork
|
barbork
|
||||||
end
|
end
|
||||||
fooa1
|
fooa1
|
||||||
fooaé
|
fooaé
|
||||||
nouend
|
nouend
|
||||||
prebar
|
prebar
|
||||||
prebarbork
|
prebarbork
|
||||||
@ -839,9 +839,9 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
bad
|
bad
|
||||||
['bar', 'end', 'fooa1']
|
['bar', 'end', 'fooa1']
|
||||||
foo
|
foo
|
||||||
['fooa1', 'fooaé', 'bar']
|
['fooa1', 'fooaé', 'bar']
|
||||||
fooa2
|
fooa2
|
||||||
['fooa1', 'fooaé', 'bar']
|
['fooa1', 'fooaé', 'bar']
|
||||||
prabar
|
prabar
|
||||||
['prebar', 'bar', 'bar bar']
|
['prebar', 'bar', 'bar bar']
|
||||||
probarbirk
|
probarbirk
|
||||||
@ -862,7 +862,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
|
|
||||||
it('part 6-6', function()
|
it('part 6-6', function()
|
||||||
insert([[
|
insert([[
|
||||||
6good: meea1 meeaé bar prebar barbork prebarbork leadprebar
|
6good: meea1 meeaé bar prebar barbork prebarbork leadprebar
|
||||||
lead end leadend leadmiddleend
|
lead end leadend leadmiddleend
|
||||||
bad: mee meea2 prabar probarbirk middle leadmiddle middleend endlead
|
bad: mee meea2 prabar probarbirk middle leadmiddle middleend endlead
|
||||||
leadprobar
|
leadprobar
|
||||||
@ -878,16 +878,16 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
end
|
end
|
||||||
lead
|
lead
|
||||||
meea1
|
meea1
|
||||||
meeaé
|
meeaé
|
||||||
prebar
|
prebar
|
||||||
prebarbork
|
prebarbork
|
||||||
-------
|
-------
|
||||||
bad
|
bad
|
||||||
['bar', 'end', 'lead']
|
['bar', 'end', 'lead']
|
||||||
mee
|
mee
|
||||||
['meea1', 'meeaé', 'bar']
|
['meea1', 'meeaé', 'bar']
|
||||||
meea2
|
meea2
|
||||||
['meea1', 'meeaé', 'lead']
|
['meea1', 'meeaé', 'lead']
|
||||||
prabar
|
prabar
|
||||||
['prebar', 'bar', 'leadbar']
|
['prebar', 'bar', 'leadbar']
|
||||||
probarbirk
|
probarbirk
|
||||||
@ -906,7 +906,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
|
|
||||||
it('part 7-7', function()
|
it('part 7-7', function()
|
||||||
insert([[
|
insert([[
|
||||||
7good: meea1 meeaé bar prebar barmeat prebarmeat leadprebar
|
7good: meea1 meeaé bar prebar barmeat prebarmeat leadprebar
|
||||||
lead tail leadtail leadmiddletail
|
lead tail leadtail leadmiddletail
|
||||||
bad: mee meea2 prabar probarmaat middle leadmiddle middletail taillead
|
bad: mee meea2 prabar probarmaat middle leadmiddle middletail taillead
|
||||||
leadprobar
|
leadprobar
|
||||||
@ -923,7 +923,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
barmeat
|
barmeat
|
||||||
lead
|
lead
|
||||||
meea1
|
meea1
|
||||||
meeaé
|
meeaé
|
||||||
prebar
|
prebar
|
||||||
prebarmeat
|
prebarmeat
|
||||||
tail
|
tail
|
||||||
@ -931,9 +931,9 @@ describe("spell checking with 'encoding' set to utf-8", function()
|
|||||||
bad
|
bad
|
||||||
['bar', 'lead', 'tail']
|
['bar', 'lead', 'tail']
|
||||||
mee
|
mee
|
||||||
['meea1', 'meeaé', 'bar']
|
['meea1', 'meeaé', 'bar']
|
||||||
meea2
|
meea2
|
||||||
['meea1', 'meeaé', 'lead']
|
['meea1', 'meeaé', 'lead']
|
||||||
prabar
|
prabar
|
||||||
['prebar', 'bar', 'leadbar']
|
['prebar', 'bar', 'leadbar']
|
||||||
probarmaat
|
probarmaat
|
||||||
|
Loading…
Reference in New Issue
Block a user