-
Notifications
You must be signed in to change notification settings - Fork 4
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
pp/#646-convert-groovy-tests-to-scalatest #773
base: dev
Are you sure you want to change the base?
Conversation
SpotlessApply
Hey @danielfeismann, i don't know how to proceed with SonarQube and "TOLERANCE" – should it be written in all caps like that? Furthermore, is it okay to make the functions public in the WecModel? Groovy was able to access without error, but Scala tells me that it is unacceptable to access the function if it is private. |
math.abs( | ||
result.toWatts - expectedPower.toWatts | ||
) should be < powerTolerance.toWatts |
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.
You can remove the .toWatts here. In combination with shouldBe approximate this should be compared correct in value and unit.
src/test/scala/edu/ie3/simona/model/participant/WecModelSpec.scala
Outdated
Show resolved
Hide resolved
!test |
…alatest # Conflicts: # CHANGELOG.md
WecModel convert from groovy to scala.
This PR is related to Issue #646