vtest "VTC process: match text"

process p1 {
	echo 0123
	echo 4567
	echo 89AB
	echo CDEF
} -run -screen-dump

# y == 0, x == 0
process p1 -match-text 0 0 "0123"
process p1 -match-text 0 0 "0.*3"
process p1 -match-text 0 0 "0123\(.|\n)*^CDEF"
process p1 -match-text 0 0 "0123\(.|\n)*^89AB\(.|\n)*F$"

# y != 0, x == 0
process p1 -match-text 1 0 "4567"
process p1 -match-text 2 0 "4567"
process p1 -match-text 2 0 "4567\(.|\n)*^9"
process p1 -match-text 3 0 "89AB"
process p1 -match-text 4 0 "C.*F"

# y == 0, x != 0
process p1 -match-text 0 1 "4567"
process p1 -match-text 0 2 "567"
process p1 -match-text 0 2 "123\(.|\n)*^5"
process p1 -match-text 0 2 "567\(.|\n)*^9"

# y != 0, x != 0
process p1 -match-text 1 1 "4567\(.|\n)*^89"
process p1 -match-text 2 2 "567\(.|\n)*^9"
process p1 -match-text 3 4 "B\(.|\n)*^F"
process p1 -match-text 4 3 "EF"

