neovim

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

digraphs_spec.lua (1564B)


      1 local n = require('test.functional.testnvim')()
      2 local Screen = require('test.functional.ui.screen')
      3 
      4 local clear = n.clear
      5 local command = n.command
      6 local feed = n.feed
      7 
      8 describe(':digraphs', function()
      9  local screen
     10  before_each(function()
     11    clear()
     12    screen = Screen.new(65, 8)
     13    screen:set_default_attr_ids({
     14      [1] = { bold = true, foreground = Screen.colors.Blue1 },
     15      [2] = { foreground = Screen.colors.Grey100, background = Screen.colors.Red },
     16      [3] = { bold = true, foreground = Screen.colors.SeaGreen4 },
     17      [4] = { bold = true },
     18      [5] = { background = Screen.colors.LightGrey },
     19      [6] = { foreground = Screen.colors.Blue1 },
     20      [7] = { bold = true, reverse = true },
     21    })
     22  end)
     23 
     24  it('displays digraphs', function()
     25    command('set more')
     26    feed(':digraphs<CR>')
     27    screen:expect([[
     28      :digraphs                                                        |
     29      NU {6:^@}  10    SH {6:^A}   1    SX {6:^B}   2    EX {6:^C}   3    ET {6:^D}   4    |
     30      EQ {6:^E}   5    AK {6:^F}   6    BL {6:^G}   7    BS {6:^H}   8    HT {6:^I}   9    |
     31      LF {6:^@}  10    VT {6:^K}  11    FF {6:^L}  12    CR {6:^M}  13    SO {6:^N}  14    |
     32      SI {6:^O}  15    DL {6:^P}  16    D1 {6:^Q}  17    D2 {6:^R}  18    D3 {6:^S}  19    |
     33      D4 {6:^T}  20    NK {6:^U}  21    SY {6:^V}  22    EB {6:^W}  23    CN {6:^X}  24    |
     34      EM {6:^Y}  25    SB {6:^Z}  26    EC {6:^[}  27    FS {6:^\}  28    GS {6:^]}  29    |
     35      {3:-- More --}^                                                       |
     36    ]])
     37  end)
     38 end)