Search:

Type: Posts; User: Taronus

Search: Search took 0.11 seconds.

  1. Replies
    11
    Views
    4,109

    Re: Expected true but was false...

    Yes, but it does not print anything. It loads and then just stops
    I have done it for all

    System.out.println(wordPlay.rockPaperScissors("rock"));...
  2. Replies
    11
    Views
    4,109

    Re: Expected true but was false...

    It tests who has won by the selection of rock
  3. Replies
    11
    Views
    4,109

    Re: Expected true but was false...

    so sorry !

    assertTrue(Arrays.asList(answers).contains(wordPlay.rockPaperScissors("rock")));


    Now that you say that I notice that I do not use the String "choice" anywhere...

    Thought the...
  4. Replies
    11
    Views
    4,109

    Re: Expected true but was false...

    else if (computerChoice.equalsIgnoreCase("paper"))
  5. Replies
    11
    Views
    4,109

    Re: Expected true but was false...

    This is my Test code:




    @Test
    void testRockPaperScissors() {
    String[] answers = {"USER:rock vs COMP:scissors user wins",
    "USER:paper vs COMP:rock user wins",
    "USER:scissors vs...
  6. Replies
    11
    Views
    4,109

    Expected true but was false...

    Hey there,


    I am really stuck with one of my codes. It is about the paper stone scissors game.

    Here is my code:



    public String rockPaperScissors(String choice) {
Results 1 to 6 of 6