neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

digraph_spec.lua (694B)


      1 local n = require('test.functional.testnvim')()
      2 local Screen = require('test.functional.ui.screen')
      3 
      4 local clear = n.clear
      5 local feed = n.feed
      6 
      7 before_each(clear)
      8 
      9 describe('digraph', function()
     10  -- oldtest: Test_entering_digraph()
     11  it('characters displayed on the screen', function()
     12    local screen = Screen.new(10, 6)
     13    feed('i<C-K>')
     14    screen:expect([[
     15      {18:^?}           |
     16      {1:~           }|*4
     17      {5:-- INSERT --}|
     18    ]])
     19    feed('1')
     20    screen:expect([[
     21      {18:^1}           |
     22      {1:~           }|*4
     23      {5:-- INSERT --}|
     24    ]])
     25    feed('2')
     26    screen:expect([[
     27      ½^           |
     28      {1:~           }|*4
     29      {5:-- INSERT --}|
     30    ]])
     31  end)
     32 end)