test module
This commit is contained in:
13
test_module/greetin.sh
Normal file
13
test_module/greetin.sh
Normal file
@ -0,0 +1,13 @@
|
||||
function description() {
|
||||
echo "Enter 'echo hello world'"
|
||||
}
|
||||
|
||||
function hint() {
|
||||
echo with your keyboard
|
||||
}
|
||||
|
||||
function validate() {
|
||||
if [ "$*" == "echo hello world" ]; then
|
||||
return 1
|
||||
fi
|
||||
}
|
13
test_module/greetout.sh
Normal file
13
test_module/greetout.sh
Normal file
@ -0,0 +1,13 @@
|
||||
function description() {
|
||||
echo "Enter 'echo goodbye world'"
|
||||
}
|
||||
|
||||
function hint() {
|
||||
echo also with your keyboard
|
||||
}
|
||||
|
||||
function validate() {
|
||||
if [ "$*" == "echo goodbye world" ]; then
|
||||
return 1
|
||||
fi
|
||||
}
|
2
test_module/task_list.sh
Normal file
2
test_module/task_list.sh
Normal file
@ -0,0 +1,2 @@
|
||||
BASHTUTOR_TASK_FILE_LIST+=(greetin.sh)
|
||||
BASHTUTOR_TASK_FILE_LIST+=(greetout.sh)
|
Reference in New Issue
Block a user