From 6a84199c17423519fe36efa3e192b5bd5f85a589 Mon Sep 17 00:00:00 2001 From: lee Date: Wed, 19 May 2021 10:45:23 +0100 Subject: [PATCH] add: questions for complex strings verifications --- subjects/quadchecker/README.md | 12 +++++++++ subjects/quadchecker/audit/README.md | 40 ++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/subjects/quadchecker/README.md b/subjects/quadchecker/README.md index 60dce5fa..121c5478 100644 --- a/subjects/quadchecker/README.md +++ b/subjects/quadchecker/README.md @@ -57,3 +57,15 @@ $ ./quadE 1 2 | go run . [quadC] [1] [2] || [quadE] [1] [2] $ ``` + +- If it's not a raid function: + +```console +$ echo 0 0 | go run . +Not a Raid function +$ echo -n "o--o"$'\n'"|"$'\n'"o" +o--o +| +o$ echo -n "o--o"$'\n'"|"$'\n'"o" | go run . +Not a Raid function +``` diff --git a/subjects/quadchecker/audit/README.md b/subjects/quadchecker/audit/README.md index 0a240c63..2aab5430 100644 --- a/subjects/quadchecker/audit/README.md +++ b/subjects/quadchecker/audit/README.md @@ -71,3 +71,43 @@ Not a Raid function ``` ###### Does the program returns the value above? + +##### Try running the program: `"echo -n "o--" | ./quadchecker"` + +``` +Not a Raid function +``` + +###### Does the program returns the value above? + +##### Try running the program: `"echo -n "/****" | ./quadchecker"` + +``` +Not a Raid function +``` + +###### Does the program returns the value above? + +##### Try running the program: `"echo -n "ABBB" | ./quadchecker"` + +``` +Not a Raid function +``` + +###### Does the program returns the value above? + +##### Try running the program: `"echo -n "ABBBA"$'\n'"B"$'\n'"B" | ./quadchecker"` + +``` +Not a Raid function +``` + +###### Does the program returns the value above? + +##### Try running the program: `"echo -n "o--o"$'\n'"|"$'\n'"o" | ./quadchecker"` + +``` +Not a Raid function +``` + +###### Does the program returns the value above?