/video-contact-sheet/branches/1.13/dist/vcs |
---|
4165,10 → 4165,10 |
"is_pos_or_percent % 1 #Percent recognition" |
) |
for t in "${TESTS[@]}"; do |
comm=${t/#*#/} # 's/.*#//' |
t=${t/%#*/} # 's/#.*//' |
val=$(awk '{print $NF}' <<<$t) |
op=$(sed "s! $val *\$!!" <<<$t) |
comm=$(sed 's!.* #!!g' <<<$t) |
# Expected value |
val=$(grep -o "[^ ]* #$comm\$"<<<$t | cut -d' ' -f1) |
op=$(sed "s! $val #$comm\$!!g" <<<$t) |
[[ -n $comm ]] || comm=unnamed |
ret=0 |
$op || { |