Guest User

Untitled

a guest
Apr 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. Feature: Marking a guess
  2. In order to get more information about the secret code
  3. As a code breaker
  4. I would like to see marks for my guess
  5.  
  6. Mark Legend:
  7. m (match)
  8. indicates a matching color in the wrong position
  9. p (positional match)
  10. indicates a matching color in the correct position
  11.  
  12. Scenario Outline: <Guess> marks as <Mark>
  13. Given the secret "<Secret>"
  14. When I guess "<Guess>"
  15. Then I should get "<Mark>"
  16.  
  17. Examples:
  18. | Secret | Guess | Mark |
  19. | r g y b | c c c c | |
  20. | r g y b | b c c c | m |
  21. | r g y b | y b c c | m m |
  22. | r g y b | y b r c | m m m |
  23. | r g y b | y b r g | m m m m |
  24. | r g y b | r c c c | p |
  25. | r g y b | r g c c | p p |
  26. | r g y b | r g y c | p p p |
  27. | r g y b | r g y b | p p p p |
  28. | r g y b | r b c c | p m |
  29. | r g y b | r g b c | p p m |
  30. | r g y b | r b y g | p p m m |
Add Comment
Please, Sign In to add comment