diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/sample.args | 2 | ||||
-rwxr-xr-x | docs/sample.sh | 2 | ||||
-rw-r--r-- | docs/sample_questions.py | 7 |
3 files changed, 6 insertions, 5 deletions
diff --git a/docs/sample.args b/docs/sample.args new file mode 100644 index 0000000..4d9f00d --- /dev/null +++ b/docs/sample.args @@ -0,0 +1,2 @@ +1 2 +2 1 diff --git a/docs/sample.sh b/docs/sample.sh new file mode 100755 index 0000000..e935cb3 --- /dev/null +++ b/docs/sample.sh @@ -0,0 +1,2 @@ +#!/bin/bash +[[ $# -eq 2 ]] && echo $(( $1 + $2 )) && exit $(( $1 + $2 )) diff --git a/docs/sample_questions.py b/docs/sample_questions.py index 5af9c4b..aa7f239 100644 --- a/docs/sample_questions.py +++ b/docs/sample_questions.py @@ -35,11 +35,8 @@ Question( description='''Write a shell script which takes two arguments on the command line and prints the sum of the two on the output.''', test='''\ -#!/bin/bash -[[ $# -eq 2 ]] && echo $(( $1 + $2 )) && exit $(( $1 + $2 )) -#++++++ -1 2 -2 1 +docs/sample.sh +docs/sample.args '''), Question( summary='Size of integer in Python', |