//MazeCalculator sampleMaze1 = new MazeCalculator(14 , 120);This code, if uncommented, would create a MazeCalculator and set time to 14, and distance to 120
//double actualDistanceInCm = sampleMaze1.getDistanceInCm();This would invoke the getDistanceInCm method, which simply sets distanceInCm to distance (120) and returns that value
//assertTrue(actualDistanceInCm == 14);This would fail, because actualDistanceInCm is 120 (see above)
I tried this one, and it fails as well. I'm using the blueJay IDE.You're still using vague statements like "it fails" instead of showing the actual result (compile time error, run-time exception, expected versus actual results, things like that).
http://freud.franklin.edu/melvil01/lab2/That's too much work for me. The onus is on you to provide a clear description of what's going on, not to just dump it off for someone else to go have to download your stuff, compile it, run it, etc -- just to see what the real problem is that you're witholding and abbreviating for some reason as "it fails".
If you go to this directory, download the zip file. Unzip into a new directory on your desktop. BlueJ is a free, 4MB IDE. Maybe that will present a clearer picture on what I'm trying to convey. I really appreciate the help, I'm very very new at this. If I could get one or two examples, I think I could pick up on how to develop testing methods. I was trying to go off of the previous assignment as a template.