aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2015-07-25 13:40:21 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2015-08-26 10:30:55 +0200
commitd4fae57a4c6f008cc0281f710d1840e81fca7625 (patch)
tree04836236c8874bdb5971046869b9c39b0a491802
parenta412e72a2f5b1b1873546dfa23fe2c600b2da052 (diff)
downloadrneovim-d4fae57a4c6f008cc0281f710d1840e81fca7625.tar.gz
rneovim-d4fae57a4c6f008cc0281f710d1840e81fca7625.tar.bz2
rneovim-d4fae57a4c6f008cc0281f710d1840e81fca7625.zip
test59: Fixup incorrectly encoded utf-8
-rw-r--r--test/functional/legacy/059_utf8_spell_checking_spec.lua82
1 files changed, 41 insertions, 41 deletions
diff --git a/test/functional/legacy/059_utf8_spell_checking_spec.lua b/test/functional/legacy/059_utf8_spell_checking_spec.lua
index 52808b0814..4e9ef19a3f 100644
--- a/test/functional/legacy/059_utf8_spell_checking_spec.lua
+++ b/test/functional/legacy/059_utf8_spell_checking_spec.lua
@@ -539,7 +539,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
it('part 1-1', function()
insert([[
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
test2:
@@ -547,13 +547,13 @@ describe("spell checking with 'encoding' set to utf-8", function()
]])
test_one(1, 1)
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')]])
-- And now with SAL instead of SOFO items; test automatic reloading.
os.execute('cp -f Xtest-sal.aff Xtest.aff')
execute('mkspell! Xtest Xtest')
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')]])
-- Also use an addition file.
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
Comment
deol
- déôr
+ déôr
input
OK
output
@@ -627,8 +627,8 @@ describe("spell checking with 'encoding' set to utf-8", function()
['OK', 'Uk', 'Put']
test
['Test', 'testn', 'testen']
- déôl
- ['deol', 'déôr', 'test']
+ déôl
+ ['deol', 'déôr', 'test']
end
['put', 'uk', 'test']
the
@@ -653,7 +653,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
it('part 2-1', function()
insert([[
2good: puts
- bad: inputs comment ok Ok end the. test déôl
+ bad: inputs comment ok Ok end the. test déôl
badend
]])
-- Postponed prefixes.
@@ -664,7 +664,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
# file: Xtest.utf-8.spl
Comment
deol
- déôr
+ déôr
OK
put
input
@@ -695,16 +695,16 @@ describe("spell checking with 'encoding' set to utf-8", function()
['put', 'uk', 'test']
test
['Test', 'testn', 'testen']
- déôl
- ['deol', 'déôr', 'test']]=])
+ déôl
+ ['deol', 'déôr', 'test']]=])
end)
it('part 3-3', function()
insert([[
Test rules for compounding.
- 3good: foo mï foobar foofoobar barfoo barbarfoo
- bad: bar la foomï barmï mïfoo mïbar mïmï lala mïla lamï foola labar
+ 3good: foo mï foobar foofoobar barfoo barbarfoo
+ bad: bar la foomï barmï mïfoo mïbar mïmï lala mïla lamï foola labar
badend
]])
test_one(3, 3)
@@ -713,30 +713,30 @@ describe("spell checking with 'encoding' set to utf-8", function()
test 3-3
# file: Xtest.utf-8.spl
foo
- mï
+ mï
-------
bad
- ['foo', 'mï']
+ ['foo', 'mï']
bar
['barfoo', 'foobar', 'foo']
la
- ['mï', 'foo']
- foomï
- ['foo mï', 'foo', 'foofoo']
- barmï
- ['barfoo', 'mï', 'barbar']
- mïfoo
- ['mï foo', 'foo', 'foofoo']
- mïbar
- ['foobar', 'barbar', 'mï']
- mïmï
- ['mï mï', 'mï']
+ ['mï', 'foo']
+ foomï
+ ['foo mï', 'foo', 'foofoo']
+ barmï
+ ['barfoo', 'mï', 'barbar']
+ mïfoo
+ ['mï foo', 'foo', 'foofoo']
+ mïbar
+ ['foobar', 'barbar', 'mï']
+ mïmï
+ ['mï mï', 'mï']
lala
[]
- mïla
- ['mï', 'mï mï']
- lamï
- ['mï', 'mï mï']
+ mïla
+ ['mï', 'mï mï']
+ lamï
+ ['mï', 'mï mï']
foola
['foo', 'foobar', 'foofoo']
labar
@@ -815,7 +815,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
insert([[
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
bad: foo fooa2 prabar probarbirk middle startmiddle middleend endstart
startprobar startnouend
@@ -830,7 +830,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
barbork
end
fooa1
- fooaé
+ fooaé
nouend
prebar
prebarbork
@@ -839,9 +839,9 @@ describe("spell checking with 'encoding' set to utf-8", function()
bad
['bar', 'end', 'fooa1']
foo
- ['fooa1', 'fooaé', 'bar']
+ ['fooa1', 'fooaé', 'bar']
fooa2
- ['fooa1', 'fooaé', 'bar']
+ ['fooa1', 'fooaé', 'bar']
prabar
['prebar', 'bar', 'bar bar']
probarbirk
@@ -862,7 +862,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
it('part 6-6', function()
insert([[
- 6good: meea1 meeaé bar prebar barbork prebarbork leadprebar
+ 6good: meea1 meeaé bar prebar barbork prebarbork leadprebar
lead end leadend leadmiddleend
bad: mee meea2 prabar probarbirk middle leadmiddle middleend endlead
leadprobar
@@ -878,16 +878,16 @@ describe("spell checking with 'encoding' set to utf-8", function()
end
lead
meea1
- meeaé
+ meeaé
prebar
prebarbork
-------
bad
['bar', 'end', 'lead']
mee
- ['meea1', 'meeaé', 'bar']
+ ['meea1', 'meeaé', 'bar']
meea2
- ['meea1', 'meeaé', 'lead']
+ ['meea1', 'meeaé', 'lead']
prabar
['prebar', 'bar', 'leadbar']
probarbirk
@@ -906,7 +906,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
it('part 7-7', function()
insert([[
- 7good: meea1 meeaé bar prebar barmeat prebarmeat leadprebar
+ 7good: meea1 meeaé bar prebar barmeat prebarmeat leadprebar
lead tail leadtail leadmiddletail
bad: mee meea2 prabar probarmaat middle leadmiddle middletail taillead
leadprobar
@@ -923,7 +923,7 @@ describe("spell checking with 'encoding' set to utf-8", function()
barmeat
lead
meea1
- meeaé
+ meeaé
prebar
prebarmeat
tail
@@ -931,9 +931,9 @@ describe("spell checking with 'encoding' set to utf-8", function()
bad
['bar', 'lead', 'tail']
mee
- ['meea1', 'meeaé', 'bar']
+ ['meea1', 'meeaé', 'bar']
meea2
- ['meea1', 'meeaé', 'lead']
+ ['meea1', 'meeaé', 'lead']
prabar
['prebar', 'bar', 'leadbar']
probarmaat