File: pkgtests

package info (click to toggle)
braillefont 1.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 144 kB
  • sloc: ansic: 204; makefile: 28; perl: 20; sh: 13
file content (17 lines) | stat: -rwxr-xr-x 534 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

echo "test one - simple string with trailing newline"
result=$(echo banana|braillefont)
expected_result="\
⡧⠤⡀⠠⠤⡀⣄⠤⡀⠠⠤⡀⣄⠤⡀⠠⠤⡀
⠣⠤⠃⠪⠭⠇⠇⠀⠇⠪⠭⠇⠇⠀⠇⠪⠭⠇"
test "$result" = "$expected_result"

echo "test two - simple string without trailing newline"
result=$(echo -n banana|braillefont)
expected_result="\
⡧⠤⡀⠠⠤⡀⣄⠤⡀⠠⠤⡀⣄⠤⡀⠠⠤⡀
⠣⠤⠃⠪⠭⠇⠇⠀⠇⠪⠭⠇⠇⠀⠇⠪⠭⠇"
test "$result" = "$expected_result"