summaryrefslogtreecommitdiffstats
path: root/tests/test-glue-functions
blob: 07ad8215fc5639ec175a8c00d0344fbf96d294d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# shell functions to include in multiple test files

# squeeze out blanks to avoid white space differences in od implementations
_intl_normalize_spaces()
{
	sed -e 's/[[:space:]]\{1,\}/ /g' -e 's/[[:space:]]*$//'
}

# avoid whitespace differences in wc implementations
_cut_leading_spaces()
{
	sed -e 's/^[ 	]*//g'
}