mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
os: add input_password(prompt) and unit tests (#15507)
This commit is contained in:
parent
d08edf8cba
commit
3b42f18dee
7 changed files with 111 additions and 0 deletions
8
examples/password/incorrect.expect
Executable file
8
examples/password/incorrect.expect
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/expect
|
||||
spawn ./password
|
||||
expect "Enter your password : "
|
||||
send "Sample123\r"
|
||||
expect "Confirm password : "
|
||||
send "Sample234\r"
|
||||
expect "Passwords do not match ."
|
||||
expect eof
|
Loading…
Add table
Add a link
Reference in a new issue