mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8.0 KiB
8.0 KiB
Functional
Has the requirement for the allowed packages been respected? (Reminder for this project: only standard packages)
For consistency, use bash
as a shell to run the following tests.
Try passing as arguments "--output test00.txt banana standard "
Usage: go run . [OPTION] [STRING] [BANNER]
Example: go run . --output=<fileName.txt> something standard
Does it display the same result as above?
Try passing as arguments --output=test00.txt "First\nTest" shadow
student$ cat test00.txt
$
_|_|_|_| _| _| $
_| _| _|_| _|_|_| _|_|_|_| $
_|_|_| _| _|_| _|_| _| $
_| _| _| _|_| _| $
_| _| _| _|_|_| _|_| $
$
$
$
_|_|_|_|_| _| $
_| _|_| _|_|_| _|_|_|_| $
_| _|_|_|_| _|_| _| $
_| _| _|_| _| $
_| _|_|_| _|_|_| _|_| $
$
$
$
Does it save the right output in the right file?
Try passing as arguments --output=test01.txt "hello" standard
student$ cat test01.txt
_ _ _ $
| | | | | | $
| |__ ___ | | | | ___ $
| _ \ / _ \ | | | | / _ \ $
| | | | | __/ | | | | | (_) | $
|_| |_| \___| |_| |_| \___/ $
$
$
$
Does it save the right output in the right file?
Try passing as arguments --output=test02.txt "123 -> #$%" standard
student$ cat test02.txt
__ _ _ _ _ __ $
_ ____ _____ \ \ _| || |_ | | (_) / / $
/ | |___ \ |___ / ______ \ \ |_ __ _| / __) / / $
| | __) | |_ \ |______| > > _| || |_ \__ \ / / $
| | / __/ ___) | / / |_ __ _| ( / / / _ $
|_| |_____| |____/ /_/ |_||_| |_| /_/ (_) $
$
$
$
Does it save the right output in the right file?
Try passing as arguments --output=test03.txt "432 -> #$%&@" shadow
student$ cat test03.txt
$
_| _| _|_|_| _|_| _| _| _| _| _|_| _| _| _|_|_|_|_| $
_| _| _| _| _| _| _|_|_|_|_| _|_|_| _|_| _| _| _| _| _| $
_|_|_|_| _|_| _| _|_|_|_|_| _| _| _| _|_| _| _|_| _| _| _|_|_| _| $
_| _| _| _| _|_|_|_|_| _|_| _| _|_| _| _| _| _| _| _| $
_| _|_|_| _|_|_|_| _| _| _| _|_|_| _| _|_| _|_| _| _| _|_|_|_| $
_| _| $
_|_|_|_|_|_| $
$
Does it save the right output in the right file?
Try passing as arguments --output=test04.txt "There" shadow
student$ cat test04.txt
$
_|_|_|_|_| _| $
_| _|_|_| _|_| _| _|_| _|_| $
_| _| _| _|_|_|_| _|_| _|_|_|_| $
_| _| _| _| _| _| $
_| _| _| _|_|_| _| _|_|_| $
$
$
$
Does it save the right output in the right file?
Try passing as arguments --output=test05.txt "123 -> \"#$%@" thinkertoy
student$ cat test05.txt
o o | | $
0 -- o-o o | | | | -O-O- O o $
/| o o | \ -O-O- o | | o / / \ $
o | / oo O | | -O-O- / o O-o $
| / | o-o / -O-O- | | o / o \ $
o-o-o o--o o-o o | | -O-O- O o- $
| | $
$
$
Does it save the right output in the right file?
Try passing as arguments --output=test06.txt "2 you" thinkertoy
student$ cat test06.txt
$
-- $
o o $
/ o o o-o o o $
/ | | | | | | $
o--o o--O o-o o--o $
| $
o--o $
$
Does it save the right output in the right file?
Try passing as arguments --output=test07.txt "Testing long output!" standard
student$ cat test07.txt
_______ _ _ _ _ _ _ $
|__ __| | | (_) | | | | | | | | $
| | ___ ___ | |_ _ _ __ __ _ | | ___ _ __ __ _ ___ _ _ | |_ _ __ _ _ | |_ | | $
| | / _ \ / __| | __| | | | '_ \ / _` | | | / _ \ | '_ \ / _` | / _ \ | | | | | __| | '_ \ | | | | | __| | | $
| | | __/ \__ \ \ |_ | | | | | | | (_| | | | | (_) | | | | | | (_| | | (_) | | |_| | \ |_ | |_) | | |_| | \ |_ |_| $
|_| \___| |___/ \__| |_| |_| |_| \__, | |_| \___/ |_| |_| \__, | \___/ \__,_| \__| | .__/ \__,_| \__| (_) $
__/ | __/ | | | $
|___/ |___/ |_| $
$