about summary refs log tree commit diff
path: root/t/qecho.t
blob: 665d5be2f5b6339a5fd901454280273a9b19fa08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
export "PATH=.:t:$PATH"

printf '1..6\n'
printf '# qecho\n'

tap3 "single string" <<'EOF'
qecho hello
>>>
»hello«
EOF

tap3 "two strings" <<'EOF'
qecho hello random
>>>
»hello« »random«
EOF

tap3 "no arguments" <<'EOF'
qecho
>>>
EOF

tap3 "empty argument" <<'EOF'
qecho foo '' bar
>>>
»foo« »« »bar«
EOF

tap3 "string with minus" <<'EOF'
qecho -n -e
>>>
»-n« »-e«
EOF

tap3 "string with double minus" <<'EOF'
qecho -n -- -e
>>>
»-n« »--« »-e«
EOF