#!/usr/bin/env bash
expect -c "''" atomf '' 'c/n-0'
expect -c "'!,>,c/,n,-0,-r0,:0,/0,=,%'" atomf '%!,%o,%c,%n,%v,%r,%s,%u,%b,%%' '!>c/n-0-r0:0/0=[u(+)]'
expect -c "'%name,0,name,0%'" atomf '%%%n,%V,%n,%V%%' 'name-0'
expect -c "'cat/name-0.1.2-r3'" atomf '%C/%n-%V%r' 'cat/name-0.1.2-r3'
expect -c "'cat/name'" atomf '%p' 'cat/name-0.1.2-r3'
expect -c "'0.1.2-r3'" atomf '%e' 'cat/name-0.1.2-r3'
expect -c "'cat/name-0.1.2-r3'" atomf '%f' 'cat/name-0.1.2-r3'
expect -c "'c
n
0'" atomf '%C\n%n\n%V' 'c/n-0'
expect -c "name    3  4   5" atomf '%-7n %1R %2S %3U' 'cat/name-0.1.2-r3:4/5'
xfail 1 atomf '%c' 'cat/name-0.1.2-r3-r4'
xfail 2 atomf '%c' 'n-0'
xfail 2 atomf '%n' 'c/0.0'
xfail 2 atomf '%v' 'c/n'
xfail 2 atomf '%p' 'n-0'
xfail 2 atomf '%e' 'c/n'
xfail 2 atomf '%f' 'c/n'
expect -c "c/n" atomf -M '%f' 'c/n'
xfail 3 atomf '%T' 'c/n'
