-
Notifications
You must be signed in to change notification settings - Fork 13
Add tests for hash-map, hash-set, and set #87
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
Conversation
Maybe add nested calls? So I don't know how exactly to test it, but for example, you can't write |
[clojure.core-test.portability #?(:cljs :refer-macros :default :refer) [when-var-exists]])) | ||
|
||
(when-var-exists clojure.core/set | ||
(deftest test-set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should have a test which asserts that set
removes duplicates.
Something like (set [1 2 3 1 2 3])
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeaye, I just added (is (= #{1 2 3} (set [1 1 2 2 3 3 3])))
Sounds like a good thing to test.
We don't want to be using |
|
@NoahTheDuke, thanks for the comment, I just added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! Thanks so much for helping with these.
No description provided.