Another case of Float
See original GitHub issueHi, so I noticed another case of the exercise expecting a Float instead of a Double
Tuple Section
def assignVariablesTuples(res0: String, res1: Int, res2: Float) {
val student = ("Sean Rogers", 21, 3.5)
val (name, age, gpa) = student
name should be(res0)
age should be(res1)
gpa should be(res2)
}
If the expected user input should be Floats, then it should probably be specified in the readme or in each exercise.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
Handle equal case in float comparison - Stack Overflow
In this case there is nothing wrong with testing equality of two floating point values. Two float/double values can be equal, ...
Read more >Floating-point arithmetic - Wikipedia
In computing, floating-point arithmetic (FP) is arithmetic that represents real numbers approximately, using an integer with a fixed precision, ...
Read more >can I use the float type as a case selector type???
Hey Jim, I'm not sure about using float as the selector type but you could simply use a menu ring as the input...
Read more >How to test if one float is an integer multiple of another?
What is the best way to test if one floating point number is an integer multiple of another floating number? e.g. I want...
Read more >15. Floating Point Arithmetic: Issues and Limitations — Python ...
Floating -point numbers are represented in computer hardware as base 2 ... In the case of 1/10, the binary fraction is 3602879701896397 /...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@raulraja no problem, I resolved this with @rafaparadela in the gitter channel. Thanks.
@idarlington feel free to reopen this if the issue continues after using your own
GITHUB_TOKEN