robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Justin M. KeyesMerge #40865 from justinmk/fixcif907614088

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