v/examples/password/tests/incorrect.expect

12 lines
365 B
Text
Executable file

#!/usr/bin/env expect
set timeout 3
set v_root [exec sh -c "git rev-parse --show-toplevel"]
spawn $v_root/v run $v_root/examples/password/password.v
expect "Enter your password : " { send "Sample123\r" } timeout { exit 1 }
expect "Confirm password : " { send "Sample234\r" } timeout { exit 1 }
expect "Passwords do not match ." {} timeout { exit 1 }
expect eof