#!/bin/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 C-\ 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'
