You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How is the "expected" variable in (result == expected) getting any value? If the "result" val is being made equal to "expected", where is expected picking up any value at all? very confusing
On Mon, Jul 10, 2017 at 4:39 PM, divusiulius ***@***.***> wrote:
How is the "expected" variable in (result == expected) getting any value?
If the "result" val is being made equal to "expected", where is expected
picking up any value at all? very confusing
def test(x:Int, y:Double,
14 s:String, *expected*:Double):Unit = {
15 val result = addMultiply(x, y, s)
16 assert(result == *expected*,
17 "Expected " + *expected* +
18 " Got " + result)
19 println("result: " + result)
20 }
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#16>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA9JrJaBFNlrfrn8FFz2zr20tqEFnk-lks5sMqgzgaJpZM4OTgei>
.
How is the "expected" variable in (result == expected) getting any value? If the "result" val is being made equal to "expected", where is expected picking up any value at all? very confusing
def test(x:Int, y:Double,
14 s:String, expected:Double):Unit = {
15 val result = addMultiply(x, y, s)
16 assert(result == expected,
17 "Expected " + expected +
18 " Got " + result)
19 println("result: " + result)
20 }
The text was updated successfully, but these errors were encountered: