Search:

Type: Posts; User: Norm

Search: Search took 0.46 seconds.

  1. Replies
    11
    Views
    4,109

    Re: Expected true but was false...

    it does not print anything
    Ok, look at the code to see what is supposed to be in the variable that is returned by the method.
    How would it be possible for the method to leave the value in the...
  2. Replies
    11
    Views
    4,109

    Re: Expected true but was false...

    The array answers contains ALL the responses. How does that one statement check for the winner of "rock"? vs the winner for "paper"?

    Did you add a print statement to print what was returned by: ...
  3. Replies
    11
    Views
    4,109

    Re: Expected true but was false...

    assertTrue(Arrays.asList(answers).contains(wordPlay.rockPaperScissors("rock")));
    What is that statement supposed to test? Can you explain that?

    Print out the value returned by:...
  4. Replies
    11
    Views
    4,109

    Re: Expected true but was false...

    I was asking about line 57 in WordPlayUnitTests4.java

    What value is in the String returned for the method: wordPlay.rockPaperScissors
    Add print statements so you can see what each of those calls...
  5. Replies
    11
    Views
    4,109

    Re: Expected true but was false...

    What statement is at line 57? What test was made on that line?

    What value is in the String returned for the method: wordPlay.rockPaperScissors
    Add print statements so you can see what each of...
  6. Replies
    11
    Views
    4,109

    Re: Expected true but was false...

    What statement gives that error? I do not see that message in the code.

    Please edit your post and wrap your code with code tags:



    **YOUR CODE GOES HERE**


    to get highlighting and...
Results 1 to 6 of 6