-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat(cli): Finished all functionalities
- passed all tests
- Loading branch information
1 parent
d401122
commit 3402ac5
Showing
8 changed files
with
336 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -u | ||
|
||
ROOT="tests/inputs" | ||
OUT_DIR="tests/expected" | ||
|
||
[[ ! -d "$OUT_DIR" ]] && mkdir -p "$OUT_DIR" | ||
|
||
EMPTY="$ROOT/empty.txt" | ||
FOX="$ROOT/fox.txt" | ||
SPIDERS="$ROOT/spiders.txt" | ||
BUSTLE="$ROOT/the-bustle.txt" | ||
ALL="$EMPTY $FOX $SPIDERS $BUSTLE" | ||
|
||
for FILE in $ALL; do | ||
BASENAME=$(basename "$FILE") | ||
cat $FILE > ${OUT_DIR}/${BASENAME}.out | ||
cat -n $FILE > ${OUT_DIR}/${BASENAME}.n.out | ||
cat -b $FILE > ${OUT_DIR}/${BASENAME}.b.out | ||
done | ||
|
||
cat $ALL > $OUT_DIR/all.out | ||
cat -n $ALL > $OUT_DIR/all.n.out | ||
cat -b $ALL > $OUT_DIR/all.b.out | ||
|
||
cat < $BUSTLE > $OUT_DIR/$(basename $BUSTLE).stdin.out | ||
cat -n < $BUSTLE > $OUT_DIR/$(basename $BUSTLE).n.stdin.out | ||
cat -b < $BUSTLE > $OUT_DIR/$(basename $BUSTLE).b.stdin.out |
Oops, something went wrong.