diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/functional/legacy/059_utf8_spell_checking_spec.lua | 44 | 
1 files changed, 38 insertions, 6 deletions
diff --git a/test/functional/legacy/059_utf8_spell_checking_spec.lua b/test/functional/legacy/059_utf8_spell_checking_spec.lua index 5794e875a0..ac2c7e6a35 100644 --- a/test/functional/legacy/059_utf8_spell_checking_spec.lua +++ b/test/functional/legacy/059_utf8_spell_checking_spec.lua @@ -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)  | 
