Ad
  • Custom User Avatar
  • Custom User Avatar

    Wouldn't this return a DivideByZero exception during a vertical line?

  • Default User Avatar

    Solved :)

  • Default User Avatar

    I have exactly the same problem as listed above. Sample Tests sometimes they pass, sometimes I get this message:

    Test FailedExpected: Triangle
    But was: Rectangle

    Random tests always fail but on different shapes. Can you point out what the problem was.

  • Default User Avatar

    I got stuck on AverageConsumptionsAfterBraking i can't figure out how this test

    var car = new Car();

        car.EngineStart();
    
        car.Accelerate(30);
        car.Accelerate(30);
        car.Accelerate(30);
    
        car.BrakeBy(10);
        car.BrakeBy(10);
        car.BrakeBy(10);
    

    gives 0,0009 l/s average consumption by time? For me it should be (0.002 * 3)/7 = 0,00086

    Could you help me with that?

    TestAverageConsumptionsAfterBraking
    Wrong Trip-Average-Consumption-By-Time
    Expected: 0.00089999999999999998d
    But was: 0.00085999999999999998d