-
Notifications
You must be signed in to change notification settings - Fork 585
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
Encourage to use ==
instead of ===
for writing unit tests.
#36
Comments
As of I think Scala 2.10, ScalaTest's |
@aarondav Thank you so much for your comment! |
If it does not matter, then I would like to close this anyway. |
Feel free to add a section recommending |
===
instead of ==
for writing unit tests.==
instead of ===
for writing unit tests.
Hi, @aarondav,
I ran this within my local and then also tried this with unit tests in Spark. Am I missing something? |
But it seems apparently okay with other comparisons for example as below (not using constant) although I don't know why:
produces
So, If you think it is fine, I will submit a PR with saying things such as ... "... |
Hm.. cc @rxin too. Do you have any preference or think it is something we should not bother for now? |
I don't have a strong preference. It doesn't really hurt my eye ... |
Let me close this for now. I will reopen when I happen to get a better reason. |
FunSuite
provides===
for comparison. I see==
and===
are used in a mixed way across unit tests. It might be great if this is encouraged documented.See http://www.scalatest.org/getting_started_with_fun_suite
The text was updated successfully, but these errors were encountered: