File: test_insert.sh

package info (click to toggle)
mle 1.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,108 kB
  • sloc: ansic: 13,335; sh: 728; php: 228; makefile: 83
file content (24 lines) | stat: -rwxr-xr-x 720 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash

macro='h e l l o enter w o r l d enter'
declare -A expected
expected[a_line1     ]='^hello$'
expected[a_line2     ]='^world$'
expected[a_byte_count]='^bview.0.buffer.byte_count=12$'
expected[a_line_count]='^bview.0.buffer.line_count=3$'
source 'test.sh'

macro='w o r l d M-i h e l l o'
declare -A expected
expected[b_line1     ]='^hello$'
expected[b_line2     ]='^world$'
expected[b_byte_count]='^bview.0.buffer.byte_count=11$'
expected[b_line_count]='^bview.0.buffer.line_count=2$'
source 'test.sh'

macro='h e l l o C-a M-u right M-u C-e M-u'
declare -A expected
expected[c_line1     ]='^hello$'
expected[c_lineb     ]='^$'
expected[c_line_count]='^bview.0.buffer.line_count=4$'
source 'test.sh'