Week 1 Exercise 22

106 views
Skip to first unread message

birakh...@gmail.com

unread,
Jul 26, 2015, 10:37:09 PM7/26/15
to mooc.fi
Hi,

I'm having problems with week1 exercise 22.
The problem I'm having is that two of my tests fail. The test for : PasswordTest asks and Answers When Wrong
and for: the the program to keep running test until the password given is correct. I don't understand what I did wrong. Could someone please take a look?


Best regards,

Harleen


Supported languages are English and Finnish

Please use our build in TMC Pastebin when asking questions related to your code  
 
TMC Plugin has built-in code sharing feature. 
In NetBeans, select TMC -> Send code to TMC pastebin. Copy the link you receive and paste it to your message.  

You may use our web interface to share code snippets: http://paste.mooc.fi

Henrik Nygren

unread,
Jul 27, 2015, 3:16:15 AM7/27/15
to mooc.fi, birakh...@gmail.com
Hello,

Verify that you're reading the input from the user. Right now you're just checking if "carrot" is "carrot" whereas what you really want to do is to check if the input is "carrot".

Hope this helps,
Henrik
Reply all
Reply to author
Forward
Message has been deleted
0 new messages