git @ Cat's Eye Technologies Falderal / a5fce62
Checkpoint updating tests. Chris Pressey 2 years ago
3 changed file(s) with 14 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
00 #!/bin/sh
11
2 if [ "$1" == "-f"]; then
3 cat <"$2"
4 elif [ "$1" == "-o"]; then
2 if [ "x$1" = "x-f" ]; then
3 if [ "x$3" = "x-o" ]; then
4 cat <"$2" >"$4"
5 else
6 cat <"$2"
7 fi
8 elif [ "x$1" = "x-o" ]; then
59 cat >"$2"
610 else
711 cat
00 #!/bin/sh
11
2 printf %s\\n $*
2 if [ "x$1" = "x-n" ]; then
3 printf %s "$2"
4 else
5 printf %s\\n "$1"
6 fi
44 the test output or not.
55
66 -> Functionality "Echo" is implemented by
7 -> shell command "python echo.py %(test-body-text)"
7 -> shell command "./echo.sh %(test-body-text)"
88
99 -> Tests for functionality "Echo"
1010
1717 = hi
1818
1919 -> Functionality "Echo, no newline" is implemented by
20 -> shell command "python echo.py -n %(test-body-text)"
20 -> shell command "./echo.sh -n %(test-body-text)"
2121
2222 -> Tests for functionality "Echo, no newline"
2323