Skip to content
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

How is the expected variable getting any value? in AddMultiply.scala #16

Open
divusiulius opened this issue Jul 10, 2017 · 1 comment
Open

Comments

@divusiulius
Copy link

divusiulius commented Jul 10, 2017

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 }

@BruceEckel
Copy link
Member

BruceEckel commented Jul 10, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants