aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcacharle <me@cacharle.xyz>2020-11-13 07:51:54 +0100
committerGitHub <noreply@github.com>2020-11-13 07:51:54 +0100
commitc0dee8d8943286e5e8788cc0cac4d4ce489327c8 (patch)
tree1934dbaf9cbc66fddaa2650d525a40edc54d9875
parentd16a0e0a9aaf60aaf2862fec50be10279566ff0d (diff)
downloadminishell_test-c0dee8d8943286e5e8788cc0cac4d4ce489327c8.tar.gz
minishell_test-c0dee8d8943286e5e8788cc0cac4d4ce489327c8.tar.bz2
minishell_test-c0dee8d8943286e5e8788cc0cac4d4ce489327c8.zip
Update README.md
-rw-r--r--README.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index e8c01d5..4536d64 100644
--- a/README.md
+++ b/README.md
@@ -127,8 +127,10 @@ In your suite function you can use the `test` function. With the following argum
test("echo bonjour je suis") # simple command
test("cat < somefile", setup="echo file content > somefile") # setup
test("ls > somefile", setup="", files=["somefile"]) # watch a file
-test("echo $A", exports={"A": "a"}) # export variables in the environment
-test("echo bonjour", hook=lambda s: s.replace("o", "a")) # pass the shell output through a hook function
+test("echo $A", exports={"A": "a"}) # export variables
+ # in the environment
+test("echo bonjour", hook=lambda s: s.replace("o", "a")) # pass the shell output
+ # through a hook function
test("cat < somefile > otherfile",
setup="echo file content > somefile",