我正在尝试进行设置,以便我的测试能够正常工作,但我一直收到关于赋值左侧不是以“flunking.gpa ...”开头的行上的变量的错误。关于我做错了什么的任何建议?
/**
* After we have added hours and quality points, we need to
* check that the gpa is (quality points) / hours
*/
@Test
public void gpa() {
flunking.gpa() = flunking.qualityPoints() / (double)flunking.hours();
assertEquals(flunking.gpa(), 0.0, DELTA);
}