Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional test case for straight? #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vastus
Copy link

@vastus vastus commented Dec 10, 2017

The tests for straight? pass when the implementation checks for a strictly monotonic sequence:

(defn straight? [hand]
  (apply < (sort (map rank hand))))

These changes add a test case to not pass such an implementation.

The tests for `straight?` pass when the implementation checks for a strictly monotonic sequence:

```clojure
(defn straight? [hand]
  (apply < (sort (map rank hand))))
```

These changes add a test case to not pass such an implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant